Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    May 2004
    Posts
    76
    Member #
    5925
    I've been having some trouble getting this menu to display properly in IE. It seems to display fine in firefox, but since I'm pretty clueless at doing div layouts, and stuff, I'm sure there's a few things wrong with it.

    I'm also trying to improve my CSS, so if anyone has suggestions on how to do a better job of coding the CSS I used I'd appreciate it.

    Just a few quick questions about Divs. Is there a colspan, or rowspan type property for them? Can text expand divs, or do I have to specify a height for each one? Should I use absolute, or relative positioning when I use them?

    Here's a link:
    http://206.116.224.94:447/div/divtest.asp

    Any help is appreciated.

  2.  

  3. #2
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    HTML Code:
    z-index: 1;
    Add a different z-index to each of the different DIVs used for the menu make sure the one containing text has the highest z-index though.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  4. #3
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    Wow dude, you're missing a LOT of info. REad up on it more, look at some examples. http://www.alistapart.com/ http://www.bluerobot.com/
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

  5. #4
    Member
    Join Date
    May 2004
    Posts
    76
    Member #
    5925
    Thanks for the help justlivyalife As for Brak I'm disappointed...
    Wow dude, you're missing a LOT of info.
    Would it hurt to be a little more specific on at least some points? Thanks for the links, nonetheless.

  6. #5
    Senior Member glyakk's Avatar
    Join Date
    Nov 2003
    Location
    USA
    Posts
    1,263
    Member #
    3828
    Liked
    6 times
    Divs do not behave at all like tables. So properties like colspan and rowspan do not apply. Think of a div as a division of your markup, after all that is why its called a div. You can take that division and put it anywhere, or style it anyway, you want on your page using CSS. In fact almost all HTML elements(<p>,<a>,<h1>,<ul>,etc..) share this ability. Divs just happen to be the most popular because their sole use is as a block element container. Its a very flexiable element. The point is when you work with divs you need to almost forget about tables, the same concepts do not apply.

    I have a partial tutorial(I really need to finish it) posted here at WDF that you might want to take a look at in the Tutorial Section under Coding.


  7. #6
    Member
    Join Date
    May 2004
    Posts
    76
    Member #
    5925
    Very nice tutorial glyakk, best I have read so far! I was kinda of applying table knowledge to using divs (replacing td's with divs ) Damn shame you stopped right at the float, and z-index part tutorial Thanks for the help.

  8. #7
    Member
    Join Date
    May 2004
    Posts
    76
    Member #
    5925
    Ok... Since so many people on here love divs I'm sure someone can answer my questions.

    Problems:

    1. If I specify a height for #menu, IE displays a small space on the left, and right sides. If I don't specify the height for the #menu then I have to do a lot of trial, and error to match both the #leftside, and #rightside height with the #menu height.

    2. Do I have to specify a height for #leftside, and #rigthside?, or does someone know how to make it span the length of #menu?


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:58 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com