Results 1 to 4 of 4

Thread: Line Height Problem

  1. #1
    Join Date
    Nov 2005
    Posts
    403

    Line Height Problem

    Still plugging away at improving my css with everyone's help. I took to heart much of the feedback you provided and made some changes. The changes look good in Firefox, and 'okay' in IE6 and Safari, I think (I trust someone will give me a needed kick in the pants if I'm wrong . I have't tested in IE5.5 or Mac yet, not really a concern at the moment. I do have one concern that I'd like some input on, though.

    In IE 6 the line spacing on the nav div is too tall when the page loads, as soon as you hover over any of the links, it snaps into place and look as it does in FF, and the way I'd like it.

    I don't know if I'm seeing an IE bug that needs a work-around, or if I'm just missing something in my own code. I Would greatly appreciate another set of eyes on it.

    Thanks

  2. #2
    Join Date
    Dec 2007
    Posts
    1,599
    A menu, when you think about it, is a list. You are setting the menu items with p, and over coding it.
    You might try this:

    [html]
    div id="nav">
    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">Services</a></li>
    <li><a href="#">About Us</a></li>
    <li><a href="#">FAQ</a></li>
    <li><a href="#">Contact Us</a></li>
    </ul>
    </div>
    [css]
    #nav{.../*line-height:100%;*/...}
    ul {font-size: 90%; font-weight: 600; list-style-type: square; line-height: 1.4;}
    a, a:link, a:visited, a:hover {text-decoration:none;color:#28C}
    a:hover{color:#FB6; background-color:#28C}
    [you can live without these]
    /*#nav p{margin: 1% 2% 1% 2%;}
    #nav p a:link{display:block; font-size:90%;text-decoration:none;font-weight:bold;color:#28C}
    #nav p a:visited{display:block; font-size:90%;text-decoration:none;
    font-family:arial,sans;font-weight:bold;color:#28C}
    #nav p a:hover{display:block; font-size:90%;text-decoration:none;
    font-family:arial,sans;font-weight:bold;color:#FB6; background-color:#28C}
    #nav p a:active{display:block; font-size:90%;text-decoration:none;
    font-family:arial,sans;font-weight:bold;color:#FB6;}*/
    #header a:link{color:#28C;font-weight:bold;text-decoration:none}
    #header a:visited{color:#28C;font-weight:bold;text-decoration:none}
    #header a:hover{color:#FA6}
    #header a:active{color:#FA6}*/

    BTW, font is not spelled correctly on one of your selectors(can't remember which one); all the inline markup styling needs to be moved to the CSS; your page needs a background-color(I default to fuchsia in Opera) and FF is having a hard time loading your image. Personally, I'd ditch both w3c buttons.

  3. #3
    Join Date
    Dec 2007
    Posts
    1,599
    I forgot to send this link to capture when I wrote a few minutes
    ago. Looks pretty good, except you'll need a pro to help fix win/2000:
    5.0 and 5.5.
    http://www.browsercam.com/public.aspx?proj_id=245842

  4. #4
    Join Date
    Nov 2005
    Posts
    403
    Thanks. The changes to the nav you suggested do work fine, and the page didn't miss all of the extra rules I had one bit. I still would like to know what was causing the problem, but I suppose it's sometimes better to scrap what you have that doesn't work and start over with something that does

    I haven't seen it, but I'm sure it look awful in IE5.5. When I went from the fixed design to liquid, I didn't spend any time putting hacks back in place to resolve the box model bug. I'm looking forward to trying the links Jan Brasna provided yesterday to get 6 and 5.5 running on the same box so I can see what I'm doing locally. I will try the hacks again then.
    The pic of my ugly mug is definatly going before the page is 'done', so I never bothered to change the name. I'm not married to the idea of using the W3C tags, but figured what the heck for now.

    Thanks much for the browsercam captures, btw. Save for IE they look much better, on the whole, than before.

    Regards

Similar Threads

  1. Line In Monitor Latency problem under Windows 7
    By Tanmaya84 in forum Monitor & Video Cards
    Replies: 5
    Last Post: 07-08-2010, 02:42 AM
  2. Catalyst command line Installation problem
    By Bricklayer in forum Hardware Peripherals
    Replies: 4
    Last Post: 03-06-2010, 01:27 PM
  3. vertical blue line on screen problem
    By Allanoo in forum Monitor & Video Cards
    Replies: 3
    Last Post: 02-09-2009, 09:12 PM
  4. Problem with line in a textarea
    By CodGuru in forum Software Development
    Replies: 4
    Last Post: 23-03-2009, 11:24 AM
  5. line wireless problem!
    By Swetlano in forum Networking & Security
    Replies: 4
    Last Post: 10-02-2009, 11:09 PM

Tags for this Thread

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
  •  
Page generated in 1,714,180,781.71702 seconds with 16 queries