Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Align a list to bottom of a div
Old 05-14-2007, 03:38 PM Align a list to bottom of a div
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
I am trying to convert our website to css. I want to get away from tables and I want to code this the RIGHT way.
Here is the link to my work in progress: http://www.motorxtremes.com/adultatvs/aatvTemplate.html
Anyway, this is really the skeleton of things right now, so I know it doesn't look good. I will be making these lists into tabs later on. ANYWAY, the problem I am having right now, is with the second list. I want it to sit on the bottom of the header image. I can do this with some padding, but if a user wants to increase the size of the text, it messes up the layout.

How can I make the list sit at the bottom of the image.

Here is my CSS:
Code:
#container{
    margin:auto;
	width: 960px;
	}
	
#header{
	background:url(../images/logo_back.jpg);
	background-repeat:no-repeat; 
	height:100px; 
	width:960px;
}

.nav ul{
	margin:0;
	padding:0;
	list-style:none;
	}
	
.nav ul li{
	margin:0;
	padding:0 .2em;
	float:left;
	display:block;
	background-color:#666;
	}
	
.topnav{
	width:960px;
	overflow:auto;
	}

.topnav ul{
	margin:0;
	padding:0 .2em;
	list-style:none;
	}
	
.topnav ul li{
	margin:0;
	padding:0 .2em;
	float:right;
	display:block;
	background-color:#666;
	}

#rightColumn {
 float:left;
 padding: 10px;
 color: #333333;
 width:230px;
 background: #dcdcdc url(http://www.motorxtremes.com/images/shadow.png) repeat-x top left;
 }
 
 #content {
 float:left;
 padding:10px;
 width:690px;
 background: #ffffff url(http://www.motorxtremes.com/images/shadow.png) repeat-x top left;
 text-align:left;
 }
And the HTML:
Code:
<div id="container">

	<div class="topnav"><!--#include virtual="/ssi/companyLinks.txt"--></div>
	
	<div id="header"><div class="nav"><!--#include virtual="/ssi/productLinks.txt"--></div></div>
	
	
	
	
	<div id="content">asdfasdfasd</div>
	
	<div id="rightColumn">asdfawfasdf</div>
	
	
	


</div>
Thank you!!

PS - I am working on a mac, and I have no idea if this looks right in IE. Let me know if you can!

Last edited by angele803; 05-14-2007 at 03:40 PM..
angele803 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-14-2007, 10:27 PM Re: Align a list to bottom of a div
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
It's over too far to the right in IE (starts toward the middle of the image).

What you can do if you want is this:
Code:
#header {
     position:  relative;
}
#header .nav {
     position:  absolute;
     bottom:  0;
     left:  0;
}
I don't think there's another way to accomplish this since vertical-align: bottom isn't cross-browser compatible.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)

Last edited by ADAM Web Design; 05-14-2007 at 10:34 PM..
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 05-15-2007, 10:57 AM Re: Align a list to bottom of a div
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Your an angel! I was reading about a method like this but couldn't understand how it worked. (I still don't get how it works, but I am glad it works!) So I had no idea how to implement it into my code. You made my life so much easier!
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Align a list to bottom of a div
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85332 seconds with 12 queries