CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 5th, 2003, 10:23 PM
rezag rezag is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: Toronto
Posts: 12 rezag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 45 sec
Reputation Power: 0
css layout problem

I have a css layout that I did here and I have done similar stuff before but for some reason IE6 but NOT Netscape7/mozilla1.4 adds a 'gap' between the columns, I have already tried setting padding and spacing to zero in the stylesheet but nothing changes, it still doesn't look right in IE6
Any ideas? thanx

Reply With Quote
  #2  
Old June 5th, 2003, 10:55 PM
ROT ROT is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 41 ROT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 35 sec
Reputation Power: 8
post code, stylesheet and html -- be easier than offering blind suggestions

Reply With Quote
  #3  
Old June 5th, 2003, 11:12 PM
rezag rezag is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: Toronto
Posts: 12 rezag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 45 sec
Reputation Power: 0
Sorry thought an uploaded version would be quicker to check so I put the link. Here is the code

Code:
<html>
 <head>
 <style type="text/css">
 <!--
 .header {
       background-color:#ffd700;
       height:75px;
       border-bottom:1px solid #000000;
       border-top:1px solid #000000;
       border-right:1px solid #000000;
 }
 .topnav {
       background-color:#003366;
       font-family:times new roman, sans-serif;
       border-bottom:1px solid #000000;
       border-right:1px solid #000000;
 }
 .leftnav {
       width:150px;
       height:525px;
       font-family:Times new roman;
       background-color:#ff0000;
       float:left;
       color:#ffffff;
       border-left:1px solid #000000;
       border-top:1px solid #000000;
       border-right:1px solid #000000;
       border-bottom:1px solid #000000;
      
 }
 .rightnav {
       width:150px;
       height:450px;
       background-color:#32cd32;
       border-bottom:1px solid #000000;
       border-right:1px solid #000000;
       border-left:1px solid #000000;
       float:right;
      
 }
 .body {
       height:450px;
       font-family:times new roman;
       background-color:#daa520;
       border-bottom:1px solid #000000;
    
 }
 .footer {
       background-color:#008000;
       font-family:times new roman;
       clear:both;
       color:#ffffff;
       border-bottom:1px solid #000000;
       border-right:1px solid #000000;
       border-left:1px solid #000000;

 }
 -->
 </style>
 </head>
 <body rightmargin="0" leftmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0">
 <div class="leftnav">Leftnav</div>
 <div class="header">Header</div>
 <div class="rightnav">Rightnav</div>

 <div class="body">Body</div>
 <div class="footer">Footer</div>
 </body>
 </html>

Reply With Quote
  #4  
Old June 5th, 2003, 11:36 PM
ROT ROT is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 41 ROT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 35 sec
Reputation Power: 8
Quote:
Originally posted by rezag
Sorry thought an uploaded version would be quicker to check so I put the link.


ah, sorry, didnt realize css was in the html file, heh

looks like the problem is your float tags -- not sure how to fix it tho

Reply With Quote
  #5  
Old June 6th, 2003, 12:22 AM
ROT ROT is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 41 ROT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 35 sec
Reputation Power: 8
was checking it with ie6... when checking it with netscape7, it works fine...

Reply With Quote
  #6  
Old June 6th, 2003, 04:08 AM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,608 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 20 h 12 m 30 sec
Reputation Power: 517
couldn't solve your prob,

but instead of using
<body rightmargin="0" leftmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0">

it would be better to put it in the css

body {
margin:0;
padding:0;
}

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css layout problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway