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
A few problems with layout
Old 05-12-2008, 04:19 AM A few problems with layout
Extreme Talker

Posts: 161
Trades: 0
Right i have a design that i just can't get right.

link to my design http://www.nelcode.co.uk



The problems are:

The side and middle part just can't get to meet up and tried a few things but cant work right.

CSS code:

Code:
/* CSS Document */

* {
	margin:0;
	padding:0;
}


body {
	background-color: #666666;
}

#wrapper {
	width:530px;
	margin: 50px auto;
}

#header {
	width:530px;
	height:90px;
	background-color:#fff;
	border-bottom-style:solid;
	border-bottom-width:1px;
}

#logo {
	background-image:url(logo.jpg);
	background-repeat:no-repeat;
	width:80px;
	height:80px;
	margin: 5px 0px 0px 0px;
}

#nav {
	float:right;
	list-style:none;
	margin: -15px 0px 0px 0px;
	color:#000;
	font-size:10px;
	font-family: Verdana, Arial, sans-serif;
}

#nav li {
	display:inline;
	padding:0px 5px 0px 5px;
}
#nav a {
	text-decoration:none;
	color:#000;
}

#nav a:hover {
	color:#ff0000;

}
#main {
	width:530px;
	height:255px;
	background-color:#fff;
}

#boxes li {
	float:left;
	list-style:none;
	width:103px;
	height:95px;
}

#boxes1 {
	background-image:url(boxes1.jpg);
	background-repeat:no-repeat;
}

#boxes2 {
	background-image:url(boxes2.jpg);
	background-repeat:no-repeat;
}

#boxes3 {
	background-image:url(boxes3.jpg);
	background-repeat:no-repeat;	
}

#sideleft {
	position:absolute;
	left: 162px;
	top: 39px;
	background-image:url(left.jpg);
	background-repeat:no-repeat;
	width:25px;
	height:386px;
	float:left;
}

#sideright {
	position:absolute;
	right: 282px;
	top: 39px;
	background-image:url(right.jpg);
	background-repeat:no-repeat;
	width:25px;
	height:376px;
	float:right;
}

#splash {
	background-image:url(splash.jpg);
	width:294px;
	height:138px;
	float:left;
	margin-top:-131px;

}

#content {
	float:left;
	width:200px;
	height:216px;
	font-family: Verdana, Arial, sans-serif;
	font-size:10px;
	background-color:#fff;
	margin-top:10px;

}


#footer {
	position:absolute;
	right: 307px;
	top: 396px;
	height: 37px;
	width:530px;
	background-image:url(bottom.jpg);
	background-repeat:no-repeat;
	float:right;
}


h1 {
	font-family: Verdana, Arial, sans-serif;
	font-size:14px;
}

h2 {
	font-family: Verdana, Arial, sans-serif;
	font-size:12px;
	margin:5px 0px 0px 10px;
	

}
#content li {
	display:inline;
	margin:5px 0px 0px 20px;
}

Any help would be great.

Last edited by afcbob; 05-12-2008 at 04:47 AM.. Reason: Forgot css code opps
afcbob is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-12-2008, 07:46 AM Re: A few problems with layout
Extreme Talker

Posts: 161
Trades: 0
Ok had some luck it all looks fine now (well almost) but i now have the problem of it's not always in the center, it change as i change the screen res is there away to stop it changing so looking the same in most screen res.

New CSS code:

Code:
/* CSS Document */

* {
	margin:0;
	padding:0;
}


body {
	background-color: #666666;
}

#wrapper {
	width:530px;
	margin: 50px auto;
}

#header {
	position:absolute;
	left: 250px;
	width:530px;
	height:90px;
	background-color:#fff;
	border-bottom-style:solid;
	border-bottom-width:1px;
}

#logo {
	background-image:url(logo.jpg);
	background-repeat:no-repeat;
	width:80px;
	height:80px;
	margin: 5px 0px 0px 0px;
}

#nav {
	float:right;
	list-style:none;
	margin: -15px 0px 0px 0px;
	color:#000;
	font-size:10px;
	font-family: Verdana, Arial, sans-serif;
}

#nav li {
	display:inline;
	padding:0px 5px 0px 5px;
}
#nav a {
	text-decoration:none;
	color:#000;
}

#nav a:hover {
	color:#ff0000;

}
#main {
	position:absolute;
	left: 250px;
	top: 141px;
	width:530px;
	height:255px;
	background-color:#fff;
}

#boxes li {
	float:left;
	list-style:none;
	width:103px;
	height:95px;
}

#boxes1 {
	background-image:url(boxes1.jpg);
	background-repeat:no-repeat;
}

#boxes2 {
	background-image:url(boxes2.jpg);
	background-repeat:no-repeat;
}

#boxes3 {
	background-image:url(boxes3.jpg);
	background-repeat:no-repeat;	
}

#sideleft {
	position:absolute;
	left: 225px;
	top: 39px;
	background-image:url(left.jpg);
	background-repeat:no-repeat;
	width:25px;
	height:386px;
	float:left;
}

#sideright {
	position:absolute;
	left: 780px;
	top: 39px;
	background-image:url(right.jpg);
	background-repeat:no-repeat;
	width:25px;
	height:376px;
	float:right;
}

#splash {
	background-image:url(splash.jpg);
	width:294px;
	height:138px;
	float:left;
	margin-top:-131px;

}

#content {
	float:left;
	width:200px;
	height:216px;
	font-family: Verdana, Arial, sans-serif;
	font-size:10px;
	background-color:#fff;
	margin-top:10px;

}


#footer {
	position:absolute;
	left: 250px;
	top: 396px;
	height: 37px;
	width:530px;
	background-image:url(bottom.jpg);
	background-repeat:no-repeat;
	float:right;
}


h1 {
	font-family: Verdana, Arial, sans-serif;
	font-size:14px;
}

h2 {
	font-family: Verdana, Arial, sans-serif;
	font-size:12px;
	margin:5px 0px 0px 10px;
	

}
#content li {
	display:inline;
	margin:5px 0px 0px 20px;
}
Thanks

Last edited by afcbob; 05-12-2008 at 07:47 AM..
afcbob is offline
Reply With Quote
View Public Profile
 
Old 05-12-2008, 10:10 AM Re: A few problems with layout
rezzy's Avatar
Super Talker

Posts: 115
Location: in the interwebz
Trades: 0
did you put that box in a div?
__________________

Please login or register to view this content. Registration is FREE

Resnodesigns
rezzy is offline
Reply With Quote
View Public Profile
 
Old 05-12-2008, 12:48 PM Re: A few problems with layout
Extreme Talker

Posts: 161
Trades: 0
what box would that be.
afcbob is offline
Reply With Quote
View Public Profile
 
Old 05-12-2008, 03:52 PM Re: A few problems with layout
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Get rid of all that position:absolute and your site will center the way you want it to. All that positioning is simply NOT necessary, and is not a good way to go. Learn to use the normal document flow to your advantage, along with floats, and you'll be better off.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-12-2008, 04:11 PM Re: A few problems with layout
Extreme Talker

Posts: 161
Trades: 0
Thats what i tried with the 1st css at the top, but could never get the left, right and bottom image ti line up with the rest of the site.

Hope you understand
afcbob is offline
Reply With Quote
View Public Profile
 
Old 05-12-2008, 04:22 PM Re: A few problems with layout
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
It doesn't appear that you CLEARED those floats, and you must do that:
http://css-discuss.incutio.com/?page=ClearingSpace
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-12-2008, 05:30 PM Re: A few problems with layout
Extreme Talker

Posts: 161
Trades: 0
Got it sorted looks better now thanks for pointing me in the right way.
afcbob is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A few problems with layout
 

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.33686 seconds with 12 queries