CSS Layout Troubles

This is a discussion on "CSS Layout Troubles" within the Web Page Design section. This forum, and the thread "CSS Layout Troubles are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 21st, 2006, 15:20
Junior Member
Join Date: Jul 2006
Location: Maine
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
CSS Layout Troubles

I am trying to create a tableless 2 column layout. Now I have a container, for the 2 columns but I want to put in another container on the first column with more divs but everything comes out funky. Is this even possible? Here is the code.

HTML
HTML: Select all
<div id="container">
<div id="info">	
<div id="info1">
</div>
<div id="info2">
</div>
<div id="info3">
</div>
<div id="info4">
</div>

</div>

<div id="content">
</div>
</div>

Here is the CSS
Code: Select all
#container {
}

#info {
}

#info1 {
	background-image:url(images/info1.jpg);
	background-repeat:no-repeat;
	height:228px;
	width:185px;
	float:left;
}

#info2 {
	background-image:url(images/info2.jpg);
	background-repeat:no-repeat;
	height:72px;
	width:185px;
	float:left;
}

#info3 {
	background-image:url(images/info3.jpg);
	background-repeat:no-repeat;
	height:132px;
	width:185px;
	float:left;
}

#info4 {
	background-image:url(images/info4.jpg);
	background-repeat:no-repeat;
	height:58px;
	width:185px;
	float:left;
}

#content {
	width:471px;
	height:490px;
	float:left;
	background-color:#FFFFFF;
}
Reply With Quote

  #2 (permalink)  
Old Sep 21st, 2006, 16:23
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Layout Troubles

At the moment, your #container and #info do not have any styling. This is not helping.

Assuming #info1, etc are the width of #info, you shouldn't be floating these. They should naturally fall onto place on after the other.
Reply With Quote
  #3 (permalink)  
Old Sep 21st, 2006, 16:26
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,993
Blog Entries: 1
Thanks: 0
Thanked 32 Times in 32 Posts
Re: CSS Layout Troubles

http://www.newbeginningsdesign.com/s...mn_layout.html
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
Reply

Tags
css, layout, troubles

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
having some troubles luv2php PHP Forum 7 May 26th, 2008 05:40
IE Troubles motormaniac Web Page Design 0 May 11th, 2008 00:01
Table-free layout troubles EdgeWalker Web Page Design 6 Feb 2nd, 2007 20:34
PHP Troubles Maverick25r PHP Forum 1 Sep 1st, 2006 03:22
IE troubles Maverick25r Web Page Design 2 Jul 24th, 2006 23:34


All times are GMT. The time now is 01:24.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43