Web Hosting Deals Holiday Logo Design Website Header Templates Register domain Search Engine Optimisation Web Hosting
Go Back   Talk Mania Forum > Tutorials > How to ....

How to .... Learn how to do anything and get what you need to do it - from experts and people like you.

 Image
Buy Sell Downloads

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2007, 01:30 AM
Junior Member
 
Join Date: Jun 2007
Posts: 10
monkeymafia is on a distinguished road
problem with css layers, please help

hey

I have a rounded box, which has been sliced into 3 separate images (top, middle, bottom). ive managed to code the box fine.

But im trying to place my header image at the top of this box using layers, but its not working, the image creates a gap inbetween the box. please see this link: http://www.kumar.adsl24.co.uk/mk.html

here is my css code:

Code:
/* CSS Document */

body { 

  margin:0px auto; 
  text-align: center; 
  color: white; 
  background: #aed0e4 url(images2/background.gif) repeat-x fixed top left;
  
  
}   

#container
{
  width: 767px;
  margin: 0px auto;
  text-align: left;
  padding: 50px 50px;

}

#header
{
position: relative;
z-index: 1;
background: url(images2/outerbox_top.gif) no-repeat;
height: 45px;
}

#middle{

z-index: 2;
background: url(images2/middle.gif);
height: 500px;
margin-left: 0.6%;
width: 744px;
}

#bottom {
background: url(images2/bottom.gif) no-repeat;
height: 60px;
margin-left: 0.6%;
width: 744px;

}

#logo{

z-index: 3;
background: url(images2/header.gif) no-repeat;
height: 80px;


}

html code:

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" xml:lang="en">
  <head>
  
  <title>Portfolio v1</title>
  <link href="layout.css" rel="stylesheet" type="text/css"/>
  </head>
 
  <body>
  
    <div id="container">
    
  <div id="header">
  </div>
  <div id="logo"></div>
  <div id="middle"></div>
  
  <div id="bottom"></div>
  
  
  
 </div>
  </body>
</html>

i appreciate any help and the time you spent looking at this. is there another way to approach this apart from layers?

Reply With Quote
  #2 (permalink)  
Old 06-22-2007, 11:05 AM
Junior Member
 
Join Date: Jun 2007
Posts: 9
carboncyber is on a distinguished road
Wink

Make the rounded corners using a separate image for each corner. Than make an image for the top and bottom borders. This will allow you to put everything you want inside them, plus it will be resizable.

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +2. The time now is 07:56 AM.



Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC8
Forums Copyright © Talk-Mania.com