SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2001
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Tantek Celig's Box Model Hack

    I'm trying to employ the box model hack to my website, but i'm having some problems. It doesn't seem like it wants to work with NN6 & IE6.

    Code:
    #bottomLeft {
    	float: left;
    	
    	width: 200px;
    	padding: 20px;
    	background-color: #2C2C73;
    	
    	voice-family: "\"}\"";
    	voice-family: inherit;
    	
    	width: 160px;
    
    }
    
    body>html #bottomLeft {
    	width: 160px;
    }
    width: 160px should replace the width: 200px but it's not doing that in IE 6/NN 6. Any help would be greatly appreciated.

    removed link

    (the box with the "discussions" images should have the same width as the grey box above)
    Last edited by Blizzy; Sep 2, 2002 at 22:00.
    signature

  2. #2
    Cult Space-Monkey Impulse's Avatar
    Join Date
    Jun 2002
    Location
    Calgary, AB
    Posts
    347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [OT]

    If I help you can I have admin on a server of my choice?
    kyle//at//retorikmedia//dot//com

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2001
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol
    if you attend SFU Surrey and join the teknights hehe

    you a server regular? hehe
    signature

  4. #4
    Cult Space-Monkey Impulse's Avatar
    Join Date
    Jun 2002
    Location
    Calgary, AB
    Posts
    347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I used to be a regular in the CS server but I haven't had much time for games lately - My brother attends UVIC, and my best friends sister attends SFU, and I'm thinking about SFU next year... does that count? *crosses fingers while looking for answer to Blizzy's problem*
    kyle//at//retorikmedia//dot//com

  5. #5
    Cult Space-Monkey Impulse's Avatar
    Join Date
    Jun 2002
    Location
    Calgary, AB
    Posts
    347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    K i found the reason its sticking out... you set the padding to 20px, which extends the block out farther - Just get rid of the padding and it works fine for me.
    kyle//at//retorikmedia//dot//com

  6. #6
    SitePoint Enthusiast
    Join Date
    Aug 2001
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ehh if your best friend's sister joins the teknights, then she can be a mod to the games :Þ

    I actually need the 20px padding.
    IE 5 incorrectly interprets the CSS box model and NN6+, IE6+ does.

    I figured ou the problem though. AceHTML (my html editor) altered my code for this line:

    Code:
    voice-family: "\"}\"";
    and turned it into:

    Code:
    voice-family: "$"}$"";
    all i had to do was use notpad to correct it back to the way it's supposed to be.
    signature

  7. #7
    SitePoint Enthusiast
    Join Date
    Aug 2001
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is the box model:

    http://www.yourhtmlsource.com/styles...ssspacing.html

    (bottom of the article talks about the IE5 bug)
    signature

  8. #8
    Cult Space-Monkey Impulse's Avatar
    Join Date
    Jun 2002
    Location
    Calgary, AB
    Posts
    347
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *slaps self*

    oops - sorry
    kyle//at//retorikmedia//dot//com

  9. #9
    SitePoint Enthusiast
    Join Date
    Aug 2001
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thats alright
    thanks for trying!
    signature


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
  •