Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2012, 09:23 PM   PM User | #1
aiva286
New Coder

 
Join Date: Dec 2012
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
aiva286 is an unknown quantity at this point
Header need help

Hello, why header isn't in full width if browser is not in full size ? please some one help. Thanks.

PHP Code:
body {
    
margin:0px;
}
.
header {
    
backgroundurl(images/header.pngrepeat-#fff;
    
min-width:100% !important;
    
height:268px;
    }
.
logo {
    
height:60px;
    
width:140px;

PHP Code:
<html>
<
head>
<
link rel="stylesheet" type="text/css" href="style.css" media="screen"/>
</
head>
<
body>
<
div class="header">
<
div class='tekstas'>Sveiki atvike i <a href='index.php'>androidos.lt</apuslapi</div>
<
div class='logo'><img src='images/logo.png' alt='Logo'></img></div>
</
div>
</
body>
</
html
aiva286 is offline   Reply With Quote
Old 12-15-2012, 11:28 PM   PM User | #2
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
Is your website live? may I have a link
tempz is offline   Reply With Quote
Old 12-15-2012, 11:40 PM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello aiva286,
You don't say what browser you're seeing this issue in. You also don't have a DocType in the snippet you've posted...

See the links about DocTypes and Validation in my signature line below. They can all help you.

A 100% min-width is kind of pointless. Maybe just setting the width makes more sense?

Look at it this way -
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
html, body {
	margin: 0;
	background: #fc6;
}
.header {
	height: 268px;
	width: 100% ;
	background: url(images/header.png) repeat-x #fff;
}
.logo {
	height: 60px;
	width: 140px;
}
</style>
</head>
<body>
    <div class="header">
        <div class='tekstas'>Sveiki atvike i <a href='index.php'>androidos.lt</a> puslapi</div>
        <img src='images/logo.png' alt='Logo' class="logo" />
    </div>
</body>
</html>
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:43 PM.


Advertisement
Log in to turn off these ads.