Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

full browser width outside wrapper

4:15 am on Feb 9, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:June 23, 2009
posts: 42
votes: 0


I have a 100 pixel wide wrapper/container with a 3 column layout in it. I want to place a long div with auto margins that takes up the entire browser width for a header. I want this outside of the wrapper and on top of the page. For some reason when I make a div there it wont let me add a color and styles. Any suggestions?
3:27 pm on Feb 10, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 18, 2010
posts: 127
votes: 0

Can you give us your code?

This should work:

<!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">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
margin: 0px;
#header {
background-color: #FF0;
width: 100%;
#wrapper {
width: 100px;
#col1 {
width: 20px;
#col2 {
width: 40px;
width: 40px;

<div id="header">Header text</div>
<div id="wrapper">
<div id="col1">Col1</div>
<div id="col2">Col3</div>
<div id="col3">Col3</div>

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members