SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ie6 paragraph problem

    in IE6, it seems like theres a <br /> after every single word. it has the same exact properties as the paragraph above it so I don't know what the problem is.

    Code css:
    #process, #pricing
    clear:both;
    float:left;
    }

    so I have this pretty much
    Code html:
    <div id="process><p>text text text text text text text</p></div>
     
    <div id="pricing><p>text text text text text text text</p></div>

    and its displaying like this

    text text text text text text text

    text
    text
    text
    text
    text
    text
    text

    hopefully that makes sense but whats causin this?

  2. #2
    Ripe Tomatos silver trophybronze trophy Rayzur's Avatar
    Join Date
    Jun 2007
    Location
    Texas
    Posts
    4,174
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Hi Jayme,
    Just an observation here, Not sure if it was just a typo when you posted the code or if that code is directly from your document.

    But you are missing the opening curly bracket in your css and you are missing the closing quotation marks in your html.
    Code:
    #process, #pricing {
    clear:both;
    float:left;
    }
    Code:
    <div id="process"><p>text text text text text text text</p></div>
     
    <div id="pricing"><p>text text text text text text text</p></div>
    A simple oversight like that can cause browser confusion, other than that we will need to see your complete code (or enough to set up a test case) to be able troubleshoot it properly.

  3. #3
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya it was a typo, I added width to the css and it fixed the break after each word but I didn't know that was needed. Strange how it only did it for some paragraphs

  4. #4
    Ripe Tomatos silver trophybronze trophy Rayzur's Avatar
    Join Date
    Jun 2007
    Location
    Texas
    Posts
    4,174
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I added width to the css and it fixed the break after each word but I didn't know that was needed.
    Applying a width will give haslayout to IE. The simplest way for an element to gain a layout is for it to have a dimensional CSS property applied—for example, a width or height.

    This thread had the same issue

  5. #5
    SitePoint Addict
    Join Date
    Dec 2007
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx have a better understanding now


Bookmarks

Posting Permissions

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