SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist Worldbuilder's Avatar
    Join Date
    Jan 2004
    Location
    Boston, MA
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Text between OLs & LIs is inheriting in IE - Argh

    Hi all,

    First off, please excuse the absolutely horrible code you're about to see. I didn't write it. It's not worth completely rewriting because the entire site will be replaced in coming months. It's what I have to work with...

    Can someone have a look at http://lfdcs.org/dissemination2.html in FireFox, please? That's how it is supposed to look.

    Now if you look in IE, you will notice that the paragraph text in between the LIs is italicized and underlined like the LIs are. I don't want that.

    I've tried various workarounds to no avail.

    Can anyone help me fix this, please? I would be most appreciative. Thanks!

    Chris

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,250
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Worldbuilder View Post
    I've tried various workarounds to no avail.
    try embedding your Ps inside your LIs where they belong

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Evangelist Worldbuilder's Avatar
    Join Date
    Jan 2004
    Location
    Boston, MA
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the advice. OK, just tried that. But that underlines and italicizes everything in both FF and IE now... Have I done it wrong? Wait tic... What about using a definition list instead? Would that be better?

  4. #4
    SitePoint Evangelist Worldbuilder's Avatar
    Join Date
    Jan 2004
    Location
    Boston, MA
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep! Nevermind, the Definition List did it. That allowed me some separation of the styles. I did have to add line breaks (<br> tag) after each DD, though. But that has not added a break in IE. Any ideas why?

  5. #5
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,250
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    applying styles shouldn't be that hard

    here's what you have --

    <ol style="margin:0,0,0,10px;font-family:book antiqua;font-size:12px;font-weight:bold;font-style:italic;text-decoration:underline;">
    <li>Lorem Ipsum
    <p style="font-family:book antiqua;font-size:11px;line-height:14pt;">asdfasdf</p>
    <p style="font-family:book antiqua;font-size:11px;line-height:14pt;">qwerqwer</p>
    <p style="font-family:book antiqua;font-size:11px;line-height:14pt;">dfghdfgh</p>
    </li>

    here's what i'd have --

    <ol>
    <li><h3>Lorem Ipsum</h3>
    <p>asdfasdf</p>
    <p>qwerqwer</p>
    <p>dfghdfgh</p>
    </li>

    this way, you apply a generic style to the OL and/or LI, and separate style to the H3 or whatever you choose as the heading for each list item

    all that inline css makes me dizzy...
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  6. #6
    SitePoint Evangelist Worldbuilder's Avatar
    Join Date
    Jan 2004
    Location
    Boston, MA
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I just tried it your way, and it's perfect. Removed the DLs I had put in and added the headers. Kept the horrible inline CSS, though. I hear ya, it's awful. But now it's done and I can move on until i replace this all with a CMS.


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
  •