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
Old 07-20-2008, 08:00 AM css layout troubles
Extreme Talker

Posts: 189
Trades: 0
I am coding my websites layout and i cant perfect its first stage.

url to site http://simster.net76.net/

can someone fix my css code so it will work perfectly.
simster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-20-2008, 08:25 AM Re: css layout troubles
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
Personally, I'd use one premade (to a certain extent) at http://blog.html.it/layoutgala/, but I have a look at you specific problem later.
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Old 07-20-2008, 12:54 PM Re: css layout troubles
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
First, fix your code by getting rid of the tables for layout.

You have an areamap that is NOT insde the <body> where it belongs.
__________________
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 07-20-2008, 04:19 PM Re: css layout troubles
Extreme Talker

Posts: 189
Trades: 0
Im not using tables.


simster is offline
Reply With Quote
View Public Profile
 
Old 07-20-2008, 04:22 PM Re: css layout troubles
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Have you followed the link you gave? Lots of tables, and an areamap outside of the body. However, it appears that this is because your hosting company is reviewing your account and replaced your original code with something else. Is there another place you have it posted?
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-20-2008, 04:27 PM Re: css layout troubles
Extreme Talker

Posts: 189
Trades: 0
im following my link to

http://simster.net76.net/

and I check my source code, and here it is

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Layout</title>
<style type="text/css">

html, body {
height: 99%;
}
#body { 
height: 99.9%;
width: 750px;
margin: 0px auto;
background-color:green;
overflow: hidden;
}

#header { 
height: 100px;
background-color:blue;
position:absolute;
top: 0px;
width: 750px;
}

#footer { 
height: 100px;
background-color:blue;
position:absolute;
bottom: -5px;
width: 750px;
}

#content { 
margin:0px;
margin-top: 90px;
margin-bottom: 200px;
height: 100%;
background-color:red;
}
</style>
</head>
<body>

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

<div id="header">
Header
</div>
<div id="footer">
Footer
</div>
</div>

</body>
</html>
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript">
var websiteID='simster.net76.net';
</script>
<script type="text/javascript" src="http://analytics.hosting24.com/s.php"></script>
<noscript>
<a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/s.php?websiteID=simster.net76.net" alt="web hosting" /></a>
</noscript>
<!-- End Of Code -->
the only part of that code I didnt put in my page is the analytics code.
simster is offline
Reply With Quote
View Public Profile
 
Old 07-20-2008, 04:32 PM Re: css layout troubles
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
That's not the code I'm getting. One of us is not getting propagated code. I'm receiving a message from your host saying that they've taken down your site temporarily to check it for malicious content. Maybe they do this for new accounts?
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-20-2008, 04:44 PM Re: css layout troubles
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Anyhow, I loaded the code you gave into a browser, and don't see anything out of place. Very simple, header, footer, content, although I would remove all that absolute positioning, since it simply serves no purpose and could cause trouble down the road.

To make a header, content, footer, all you need to do is place all three inside of a wrapper element, center the wrapper(if desired), then allow each of its children to naturally take its form. This way you don't need to set any widths on the children (#header, #content, and #footer), or center any of them, as they will automatically be as wide as all of the available space in the wrapper:

HTML Code:
<div id="wrapper">

<div id="header">
<!--some content-->
</div>
<div id="content">
<!--some more content-->
</div>
<div id="footer">
<!--and more content-->
 </div>

</div> <!--end of wrapper-->
__________________
Join me on
Please login or register to view this content. Registration is FREE

Last edited by wayfarer07; 07-20-2008 at 04:46 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-21-2008, 02:05 AM Re: css layout troubles
Extreme Talker

Posts: 189
Trades: 0
code is now

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Layout</title>
<style type="text/css">

html, body {
height: 100%;
padding:0px;
margin:0px;
}

#wrapper { 
height: 99.9%;
width: 750px;
margin: 0px auto;
background-color:green;
overflow: hidden;
}
#header { 
height: 100px;
background-color:blue;
top: 0px;
}

#footer { 
height: 100px;
background-color:blue;
position:absolute;
bottom: 0px;
width:inherit;
}

#content { 
margin:0px;
height: 100%;
background-color:red;
}




</style>
</head>
<body>

<div id="wrapper">

<div id="header">
Header
</div>
<div id="content">
Content
</div>
<div id="footer">
Footer
</div>

</div>

</body>
</html>
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript">
var websiteID='simster.net76.net';
</script>
<script type="text/javascript" src="http://analytics.hosting24.com/s.php"></script>
<noscript>
<a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/s.php?websiteID=simster.net76.net" alt="web hosting" /></a>
</noscript>
<!-- End Of Code -->

how can i get the content div to have a scroll bar if there is too much content?
simster is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 07:30 AM Re: css layout troubles
MatrixIT's Avatar
Skilled Talker

Posts: 85
Name: Dan
Trades: 0
Just a quick tip that might save time and space, you can actually group all of your margin values into one:

HTML Code:
margin:0 20px 3px 2px
For example. The first value of 0 is for the top margin, and then it just carries on clock-wise to right, bottom and left
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
MatrixIT is offline
Reply With Quote
View Public Profile
 
Old 07-21-2008, 03:51 PM Re: css layout troubles
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
The normal way of getting content to scroll, is to set a height on it, then set the overflow to "auto", like this:
CSS
Code:
#content {
height: 400px;
overflow: auto;
}
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-21-2008, 05:45 PM Re: css layout troubles
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
That's not the code I'm getting. One of us is not getting propagated code. I'm receiving a message from your host saying that they've taken down your site temporarily to check it for malicious content. Maybe they do this for new accounts?
I'm getting the simple div design, no messages or whatever. Very simple, basic, but nothing wrong.
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Reply     « Reply to css layout troubles
 

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