Français English Español Italiano Português
User Login    
 + User Registration
Connexion

Fluid Layout Images


Author : lotsofcode | Lots of Code
Date : 2008-02-27T14:31:36+01:00
Views : 5

A nice little way of adding a header image to a fluid layout it to break the header images into two slices and then assign the headers to a div in the same container like so.



<style type="text/css">

#myContainerName

{

background: url('/path/to/images/header-back.jpg') repeat-x;

height: 220px;

}


#myContainerName #leftBackground

{

background: url('/path/to/images/header-left.jpg') left no-repeat;

height: 100%;

width: 100%;

}


#myContainerName #rightBg

{

background: url('./path/to/images/header-right.jpg') right no-repeat;

height: 100%;

width: 100%;

}

</style>


And the HTML will look like so ...



<div id="myContainerName">

<div id="rightBg">

<div id="leftBg">

<!-- Content Here -->

</div>

</div>

</div>



URL : http://community.xoofoo.org/modules/actus_webmaster/view.article.php/1
Trackback : http://community.xoofoo.org/modules/actus_webmaster/trackback.php/1

The comments are owned by the poster. We aren't responsible for their content.
Poster Thread