+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: how to prevent links from moving to next line?

  1. #1
    Join Date
    Nov 2004
    Location
    Toronto
    Posts
    60

    Default how to prevent links from moving to next line?

    Please forgive my ignorance...

    I just put together a simple HTML site for one of my domains, and am now polishing the look, before it get too large and out of hand.

    Originally I set it up as a table, but the left menu was floating down once I had too much content, so I put my nose into a manual, and did a CSS style sheet. I set it up as blocks, and all worked beautifully, until I got to a page where I have a link within text.

    That link keeps moving to a separate line
    like that
    and doesn't want to join the rest no matter what I do.

    I tried to invent some coding, telling it: #link a {display: inline} - but I don't think this is anyhting valid, and it didn't change anything.

    Anyone can tell me what I'm doing wrong? I'd hate to have to go back to using tables...

  2. #2
    Join Date
    Apr 2004
    Location
    Nanaimo
    Posts
    16,026

    Default Re: how to prevent links from moving to next line?

    there has to be something wrong with the way you have your links defined in the CSS as by default regular html text links will embed within your paragraph with no issue. Can you post a link to your style sheet?
    Starting LEC 7 soon but it won't be called LEC 7 - LEC 2012 coming soon!

  3. #3
    Join Date
    Nov 2004
    Location
    Toronto
    Posts
    60

    Default Re: how to prevent links from moving to next line?

    Thanks for your reply...

    My son came back from work, deleted from my CSS file a line that said:
    #content a {display: block}
    and the problem was fixed.

    I still have a problem with this site, though, because I just found that even new Opera does not recognize my style sheet, and the text is running over the images...

    The website is already up, but it only looks good in Explorer. And I am using 5th edition of Elizabeth Castro HTML with XHTML and CSS book...

  4. #4
    Join Date
    Sep 2005
    Posts
    62

    Default Re: how to prevent links from moving to next line?

    My first suggestion is take out the script tags from your linked css files. No script tags in the actual css files.

    Secondly, look at www.w3c.org for information about Document Type Definitions (DTD). If you don't have the correct DTD, the browser will default to a lower level of css.

    Try using the following DTD:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

  5. #5
    Join Date
    Jul 2005
    Location
    Boston, MA
    Posts
    566

    Thumbs up Re: how to prevent links from moving to next line?

    Good thread
    285 Columbus Lofts - New 63-unit Boston loft development in the former Red Cross building
    FP3 Boston Condos - FP3 Fort Point Channel Boston Seaport Condos
    Boston Real Estate - Providing Google Map based search of condo developments

  6. #6
    Join Date
    Jul 2004
    Location
    Nanaimo, B.C.
    Posts
    1,237

    Default Re: how to prevent links from moving to next line?

    you look like your just trying to increase your post count TheBoulderRealtor

  7. #7
    Join Date
    Nov 2004
    Location
    Toronto
    Posts
    60

    Default Re: how to prevent links from moving to next line?

    Jason, I don't know if I understood your intentions. SO please correct me if I'm wrong.

    You suggest I should be sitting on my ass (pardon my French) and waiting for everyone else's website to be better than mine?

    I am trying to use the time that I gained, all of a sudden, from being dropped several pages down, and improve what I have. Is that so bad?

    I am also trying to get some information from some of you who might know more. Is that so bad?

    And, when I figure something out, I come back and share what I learned, sitting with my nose to the keyboard for the last few days. Perhaps I shouldn't. Is that what you had in mind? It's just the way you guys write I sense a lot of enmity... But perhaps I read it wrong.

    Please take into account that English is my - I wanted to say second, but actually it is fourth - language (not that I retained well the other two, learned before it), and in some instances I may misunderstand your intent.

  8. #8
    Join Date
    Jul 2004
    Location
    Nanaimo, B.C.
    Posts
    1,237

    Default Re: how to prevent links from moving to next line?

    Greetings wadowiczanka,

    I don't think that you understood my intentions. My post was written as a response to what "TheBoulderRealtor" wrote. Not to what you wrote. He wrote "Good thread" and to me it didn't seem like that post was necessary in the conversation that was going on, so I gave him a friendly reminder to not post just to increase his post count.

    I applaud you for using your time to improve what you have and I am one of the first people to respond and help out when I can.

  9. #9
    Join Date
    Sep 2005
    Location
    Louisiana
    Posts
    101

    Default Re: how to prevent links from moving to next line?

    I don't know how much this might add to the help:

    One thing I always try to do is minimize the amount of table/cell structure information defined in the CSS. I try as much as possible to let the web page handle all the table/cell sizing, orientation, fonts, etc while letting the CSS do what it was invented for - to make it easy to make mass changes to my information. Using this technique I find myself making far less changes to accomodate FireFox, Opera, and IE. (IE intentionally listed last. heheh)

    ...just 2 cents from this small brain.
    Shreveport Bossier City Real Estate - Shreveport Bossier City Real Estate features an MLS search, home building advice, and FREE FSBO listings.

  10. #10
    Join Date
    Apr 2004
    Location
    Nanaimo
    Posts
    16,026

    Default Re: how to prevent links from moving to next line?

    Jason, although we try to dis-courage "me to" posting please refrain from making public reminders, if a member needs to be reminded of a rule here, please use the private message funtion.

    Keep in mind, we need to look at the quality of member and posts, theboulderrealtor has been making great contributions and asking great questions here, we discourage "me to" posting, because we dont want spammers here, just trying to get more backlinks from their sig, this is a community and once someone has proven themselves as a member of the community we can certainly allow a little more leway when evaluating posts.

    Sorry about the tangent this thread took, I am glad you got your issue resolved, I appologize if anyone was offended.
    Keep up the great work guys
    Starting LEC 7 soon but it won't be called LEC 7 - LEC 2012 coming soon!

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts