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 February 18th, 2004, 05:11 AM
camcim camcim is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Melbourne, Australia
Posts: 290 camcim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 43 m 46 sec
Reputation Power: 7
CSS columns not showing...i think

Hi all,
I have the following:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<style type="text/css">
<!--
body, html{
      height:100%;
      text-align:center;
      margin:0px;
      padding:0px;
   }
   #main,#header,#footer,#cleaner{
      margin-left:auto;
      margin-right:auto;
      width:750px;
      text-align:left;
   }
   #main{
    /*this height is for ie only*/
      height:100%;
      min-height:100%;
      margin-bottom:-50px;
   }
  /*ie wont see this, other browsers will*/
   body>div#main{
      height: auto;
   }
   #header, #footer,#cleaner{
      height:50px;
   }
-->
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<?
include ('include/head.php');
?> 
</head>
<body>
<div id="main">
  <div id="header">
<?
include ('include/top_nav.php');
?>  
  </div>
<?
include ('return_policy.php');
?>  
  <div id="cleaner"></div>
</div>
<div id="footer">
<?
include ('include/footer.php');
?> 
</div>
</body>
</html>


It appears to have two columns either side but i can't add anything to them. Can anyone tell me how i might be to add a background image?
Cheers,
camcim

Reply With Quote
  #2  
Old February 18th, 2004, 07:38 AM
andrin andrin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 25 andrin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by camcim
Hi all,
I have the following:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<style type="text/css">
<!--
body, html{
      height:100%;
      text-align:center;
      margin:0px;
      padding:0px;
   }
   #main,#header,#footer,#cleaner{
      margin-left:auto;
      margin-right:auto;
      width:750px;
      text-align:left;
   }
   #main{
    /*this height is for ie only*/
      height:100%;
      min-height:100%;
      margin-bottom:-50px;
   }
  /*ie wont see this, other browsers will*/
   body>div#main{
      height: auto;
   }
   #header, #footer,#cleaner{
      height:50px;
   }
-->
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<?
include ('include/head.php');
?> 
</head>
<body>
<div id="main">
  <div id="header">
<?
include ('include/top_nav.php');
?>  
  </div>
<?
include ('return_policy.php');
?>  
  <div id="cleaner"></div>
</div>
<div id="footer">
<?
include ('include/footer.php');
?> 
</div>
</body>
</html>


It appears to have two columns either side but i can't add anything to them. Can anyone tell me how i might be to add a background image?
Cheers,
camcim


No. It is not two columns. With your stylesheet above, this:


Quote:
Originally Posted by camcim
Code:
<div id="main">
	<div id="header">
	...
	</div>
	<div id="cleaner">
	...
	</div>
</div>



will render one row with two rows inside. And this:


Quote:
Originally Posted by camcim
Code:
<div id="footer">
...
</div>



will render another row.

So you have two rows with two rows within the first row.

Last edited by andrin : February 18th, 2004 at 07:40 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS columns not showing...i think


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT