dsrnu
asked on
How do I expand the background to 100% of the width with OOCSS?
I am currently using the OOCSS framework from http://wiki.github.com/stubbornella/oocss/
I created the following page but for some reason, the black background won't stretch all the way. Any ideas?
I added this in the template.css:
.stretch{background-color: #000;overf low:visibl e;}
I created the following page but for some reason, the black background won't stretch all the way. Any ideas?
I added this in the template.css:
.stretch{background-color:
<!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>Template Documentation</title>
<link rel="stylesheet" type="text/css" media="all" href="css/core/libraries.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/core/template/template.css" />
<!--<link rel="stylesheet" type="text/css" media="all" href="css/core/template/template_debug.css" />-->
<link rel="stylesheet" type="text/css" media="all" href="css/core/grid/grids.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/core/content.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/core/module/mod.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/core/module/mod_skins.css" />
</head>
<body>
<div class="page">
<div class="body">
<div class="main">
<h2>Main Content</h2>
<p>Main Content is fully liquid. It takes all the remaining space on the line after the widths of “leftCol” and “rightCol” are taken into account. Alternatively, grids can be used to break up the main content area for fully fluid layouts.</p>
<div class="line stretch">
<div class="unit size1of4">
<h3>24/7 Support</h3>
<p>Lorem ipsum dolor sit port amet, consectetur adipisicing elit, sed do eiusmoc 24/7 support! </p>
</div>
<div class="unit size1of4">
<h3>Pride Folio</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmos Stunning portfolio!</p>
</div>
<div class="unit size1of4">
<h3>Time Respect</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmo We're always on time!</p>
</div>
<div class="unit size1of4">
<h3>Best Quality</h3>
<p>Lorem ipsum dolor sit amet, consectetur aditpisicing elit, sed do eiusmot Case study.</p>
</div>
</div>
<div class="line">
<div class="unit size1of2">
<h3>Who We Are</h3>
<p>Etiam lectus nulla, vestibulum vel luctus eu, ultricies sit amet arcu. In a sem a nibh fringilla blandit. Ut ut metus ut turpis ultricies ullamcorper a quis ante. Suspendisse et torto sed.</p>
<h3>Behind the Logo</h3>
<p>Etiam lectus nulla, vestibulum vel luctus eu, ultricies sit amet arcu. In a sem a nibh fringilla blandit. Ut ut metus ut turpis ultricies ullamcorper.</p>
</div>
<div class="unit size1of2">
<h3>Our Team</h3>
<p>Etiam lectus nulla, vestibulum vel luctus eu, ultricies sit amet arcu. In a sem a nibh fringilla blandit.</p>
</div>
</div>
<div class="line">
<div class="unit size1of1">
<p>Lorem ipsum dolor sit amcet, consectetur adipisicing elit, sed do eiusmod tempor Incididunt ut labore et dolore magna aliqua.</p>
</div>
</div>
</div>
</div>
<div class="foot">
<div class="line">
<div class="unit size1of3">
<h3>Let Us Talk!</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="unit size1of3">
<h3>Testimonials</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
<div class="unit size1of3 lastUnit">
<h3>Latest Blog Posts</h3>
<p>Lorem ipsum dolor sit amet...</p>
</div>
</div>
</div>
</div>
</body>
</html>
screenshot.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Add this to the existing style
style="width:100%;height:1
Hope this helps