Enjoy an ad free experience by logging in. Not a member yet?
Register .
12-17-2012, 05:03 PM
PM User |
#1
New Coder
Join Date: Dec 2012
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Please help fix code
Hello, i have one more problem whit header.
Now.
How it should look.
Index.php
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Clean Mag</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen"/>
</head>
<body>
<div id='wrap'>
<div id='Header'>
<div class='logo'>
<a href='#'><img src='images/logo.png'></img></a>
</div>
<div class='ads'>
<img src='images/banner.png'></img>
</div>
</div>
<div id='submeniu'>
<div class='subup'>
<a href='#'>Home</a>
</div>
<div class='subdown'>
<a href='#'>Categories</a>
</div>
</div>
<div id='border'>
<div id='Main'>
<div id='Primary'>
</div>
<div id='Sitebar'>
</div>
</div>
</div>
<div id='Footer'>
</div>
</div>
</body>
</html>
Style.css
Code:
body, html {
margin:0px;
}
body {
background:white;
}
#wrap {
width:990px;
margin-left:auto;
margin-right:auto;
}
#border {
margin:0px;
border-right:1px solid #e6e6e6;
border-left:1px solid #e6e6e6;
height:1000px;
}
/* Header */
#Header {
height:115px;
}
#Header .logo {
padding-top:35px;
padding-bottom:35px;
float:left;
}
#Header .ads {
float:right;
padding-top:10px;
padding-bottom:10px;
}
/* Submeniu */
#submeniu {
height:78px;
margin:0px;
}
#submeniu .subup {
height:34px;
background:url(images/up.png) repeat-x;
}
#submeniu .subdown {
height:44px;
background:url(images/down.png) repeat-x;
}
Thanks
Last edited by aiva286; 12-18-2012 at 04:49 PM ..
12-17-2012, 08:00 PM
PM User |
#2
The fat guy next door
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,592
Thanks: 5
Thanked 865 Times in 842 Posts
We’re only replying to specific questions, not to vague posts.
__________________
Don’t click this link !
12-17-2012, 08:18 PM
PM User |
#3
New Coder
Join Date: Dec 2012
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Ok, please help whit sidebar it always on bottom. And please help code header because it have some bugs. Thanks
12-17-2012, 11:28 PM
PM User |
#4
Master Coder
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Hello aiva286,
You can move your sidebar into the correct position by re-arranging your markup so that it comes before those #primary's (which should be .primary since you cannot re-use id's like that).
You can also do it by editing only the CSS. Make your CSS look like this (changes highlighted in red) -
Code:
#sidebar {
/* float: right;
width: 275px;*/
margin: 0 0 0 680px;
}
12-17-2012, 11:29 PM
PM User |
#5
Master Coder
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Quote:
Originally Posted by
aiva286
help code header because it have some bugs. Thanks
You'll need to be a little more specific than that. If you describe the issue as if you are explaining it to someone viewing your site for the very first time, you'll get better responses.
12-18-2012, 03:02 PM
PM User |
#6
New Coder
Join Date: Dec 2012
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Hello, i need that sidebar would be always on top like in other normals webs. Thanks.
12-18-2012, 03:09 PM
PM User |
#7
Master Coder
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Quote:
Originally Posted by
aiva286
Hello, i need that sidebar would be always on top like in other normals webs. Thanks.
There are two options for fixing your sidebar in
my first reply . Did you try either of them?
Users who have thanked Excavator for this post:
12-18-2012, 04:49 PM
PM User |
#8
New Coder
Join Date: Dec 2012
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Hello, i have one more problem whit header. Thanks
12-18-2012, 04:54 PM
PM User |
#9
Master Coder
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Quote:
Originally Posted by
aiva286
Hello, i have one more problem whit header. Thanks
You'll need to be a little more specific than that. If you describe the issue as if you are explaining it to someone viewing your site for the very first time, you'll get better responses.
Jump To Top of Thread
Thread Tools
Rate This Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT +1. The time now is 09:16 AM .
Advertisement
Log in to turn off these ads.