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 April 17th, 2004, 04:19 PM
Salizar's Avatar
Salizar Salizar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 289 Salizar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Problems with CSS layouts

I'm having an issue with a CSS layout I"m working on.
1.For some off reason the div element for my page footer appears to think its inside of the mbox div.
no matter what I have tried I can't get the pagebot div to the bottom of browser.
2. Width of 100% still leaves 30 or so px's on the right, any reason for this?
3. setting a min-height of 500 or so for mbox or innerbox divs has been ignored.
Code:
<html>
<head>
	<title>Untitled</title>
	<style>
	#container {
		position: absolute;
		top: 0px;
		left: 0px;
		width: 100%;
		height: 100%;
	}
	#pagetop{
		position: relative;
		top: 0px;
		background-color: #ADD8E6;
		width: 100%;
		height: 65px;
	}
	#pagebot {
		position: relative;
		background-color: #ADD8E6;
		height: 65px;
		clear: both;
	}
	#mbox {
		position: relative;
		border: 5px solid #000;
	}
	#innerbox {
		position: relative;
		left: 10px;
	}
	div{
		border: 1px solid red;
	}
	</style>
</head>
<body>
<div id="container">
	<div id="pagetop"></div>
	<div id="mbox">
		<div><img src='imgs/logo_tot_grey.jpg' width='280' height='95' alt='' border='0'></div>
		<div id="innerbox">
			<p>Test</p>
		</div
	</div>
	<div id="pagebot"></div>
</div>
</body>
</html>

Reply With Quote
  #2  
Old April 17th, 2004, 04:51 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,689 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: 4 Weeks 7 h 23 m 52 sec
Reputation Power: 600
you are missing a > on of the closing div-tag
to the innerbox div


2.
add
body {
margin:0;
padding:0;
}

to get it to use the whole width

3.
msie doesn't support min-height, should work in the other browsers like mozilla, opera etc.
http://www.quirksmode.org/css/width.html

Last edited by Akh : April 17th, 2004 at 04:54 PM.

Reply With Quote
  #3  
Old April 17th, 2004, 06:53 PM
Salizar's Avatar
Salizar Salizar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 289 Salizar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Quote:
Originally Posted by Akh
you are missing a > on of the closing div-tag
to the innerbox div


2.
add
body {
margin:0;
padding:0;
}

to get it to use the whole width

3.
msie doesn't support min-height, should work in the other browsers like mozilla, opera etc.
http://www.quirksmode.org/css/width.html


Thanks for your assistance...

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Problems with CSS layouts


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 2 hosted by Hostway
Stay green...Green IT