#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    68
    Rep Power
    13

    Question Line breaks and CSS letter spacing


    There seems to be a problem with line breaks when I use CSS letter spacing: doing <BR><BR> is the same as <BR>

    Look at exemple: http://users.pandora.be/fourtyseven/blah.htm
    (look at the source)

    I'm using IE 6 on XP. Can anyone who use IE 5 tell me if it's the same?
  2. #2
  3. No Profile Picture
    Bringer of the Bling
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    Orlando, FL
    Posts
    68
    Rep Power
    14
    It does it on IE5.5 with Windows 2000 too. I have no idea why thought. Sorry.

    You could use <p></p> instead of <br> when you want a line break. That works.




    <STYLE>
    P { letter-spacing: 1px; }
    </STYLE>
    <P>
    bleh<BR>
    blih<p></p>
    blah
    </P>
  4. #3
  5. No Profile Picture
    Do you like PHP like ME?
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    St. George, Utah, of the USA
    Posts
    67
    Rep Power
    13
    doing that u would not be xhtml compliant as we all should be

    try this:


    <STYLE>

    .P{
    letter-spacing: 1px;
    }

    </STYLE>





    <div class="P">bleh</div>
    <br>
    <div class="P">blih</div>
    <br>
    <div class="P">blah</div>


    this have kinda the affect ur lookin for or do u want something else?
    PHP Code:
    <STYLE
    You know your a web programmer when you see a '$' and think of PHP rather than money.
  6. #4
  7. No Profile Picture
    Do you like PHP like ME?
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    St. George, Utah, of the USA
    Posts
    67
    Rep Power
    13
    forget that "php highlight" thing I did and u can add another <br> to the code I put and it should work.
    You know your a web programmer when you see a '$' and think of PHP rather than money.
  8. #5
  9. No Profile Picture
    Divine Wind
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Mongo
    Posts
    24
    Rep Power
    0
    Technically there should be no need for 2 lots of <BR> anyway. If you are using them for vertical spacing then use padding or margin in CSS.

    Emperor

IMN logo majestic logo threadwatch logo seochat tools logo