Current location: Hot Scripts Forums » General Web Coding » CSS » Problem Aligning Images in a Row at Bottom of a Div

Problem Aligning Images in a Row at Bottom of a Div

Reply
  #1 (permalink)  
Old 11-01-09, 09:22 PM
sccc2008 sccc2008 is offline
Newbie Coder
 
Join Date: Jan 2007
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Angry Problem Aligning Images in a Row at Bottom of a Div

Hello,

I am trying to get a row of divs to align at the bottom of a container div. With the CSS I have applied, everything is aligning at the bottom but the divs (and the images and text within them) all seem to be stacking on one another. I need them to display in a row with a 25px margin-right to all of the divs inside of the container.

The following is the css code for the divs:
HTML Code:
#container {
	position: relative;
	height:300px;
}

#subdiv {
	position: absolute; 
	bottom: 0;
	float:left;
	width:25%;
}
The HTML is as follows:

HTML Code:
<div id="container">
     <div id="subdiv">
     Image and text inside.
    </div>
     <div id="subdiv">
     Image and text inside.
    </div>
     <div id="subdiv">
     Image and text inside.
    </div>
     <div id="subdiv">
     Image and text inside.
    </div>
</div>
If anyone can offer any assistance on this problem, your help is greatly appreciated.

Last edited by wirehopper; 11-01-09 at 09:32 PM. Reason: HTML tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-01-09, 09:33 PM
wirehopper's Avatar
wirehopper wirehopper is offline
Community Liaison
 
Join Date: Feb 2006
Posts: 2,307
Thanks: 16
Thanked 90 Times in 88 Posts
The subdivs should probably be classes.

HTML Code:
.subdiv
{
  /* Dimensions, float, alignment */
  /* Avoid absolution positioning, as these settings will apply to all four subdivs */
}

<div class="subdiv"> ... </div>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DIV background (top & bottom images) overlapping? sp1ky CSS 1 11-12-06 10:53 AM
div and css problem nicpon CSS 5 09-03-06 09:38 PM
dynamic images in php - a problem and a question gnznroses PHP 2 01-05-06 11:58 AM
CSS Div problem themanmathias CSS 1 09-29-05 08:05 PM
Rotating Images in a Table Row Roses6088 HTML/XHTML/XML 2 07-20-05 02:57 PM


All times are GMT -5. The time now is 10:35 AM.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.