css rounded boxes ontop of each other

This is a discussion on "css rounded boxes ontop of each other" within the Web Page Design section. This forum, and the thread "css rounded boxes ontop of each other are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 20th, 2007, 16:48
Junior Member
Join Date: Mar 2006
Location: uk
Age: 26
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down css rounded boxes ontop of each other



how would i create a webpage like above using css. placing boxes ontop of each other?
Reply With Quote

  #2 (permalink)  
Old Feb 20th, 2007, 22:43
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css rounded boxes ontop of each other

Many ways. z-index will make things easier for you. It rather depends on if the boxes are fixed width/height, where they are in the source, and the type of corners you're using.
Reply With Quote
  #3 (permalink)  
Old Feb 20th, 2007, 23:13
Junior Member
Join Date: Mar 2006
Location: uk
Age: 26
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css rounded boxes ontop of each other

well i was thinking of using this as a base http://www.456bereastreet.com/lab/teaser/ ill be using two images one for the top of the box, one for the bottom and then have a background image for the rest of the box. basically i want 3/4 boxes on top of each other, each has a header/title and when the header/title is clicked that box is brought forward. the boxes would stay fixed size and width.

not sure what you mean by where they will be in the source. the page will look mostly like the image but with different colours, text in the boxes and not much else.
Reply With Quote
  #4 (permalink)  
Old Feb 21st, 2007, 10:05
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css rounded boxes ontop of each other

Z-index and positioning are what you'll need then. Just position the boxes inside a div, then use z-index to make certain ones be over the others.
Reply With Quote
  #5 (permalink)  
Old Feb 21st, 2007, 17:24
Junior Member
Join Date: Mar 2006
Location: uk
Age: 26
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css rounded boxes ontop of each other

i having problems with my css. ive got the following image:



ive split it into three part (top, middle and bottom). with the css i can get the top and bottom to display correctly but im having trouble with the middle the gradient is not showing up i think its just using a slice of it. any ideas?

heres how it turns out:



heres the code:

Quote:
<style type="text/css" media="screen,print">

body {
margin:0;
padding:0;
color:#000;
background:#333333;
}
body {
padding:20px;
}


.teaser {
width:547px;
padding:0 0 14px 0;
margin:10px auto;
background:url("greenbottom.jpg") bottom left no-repeat;
}
.teaser h3 {
margin:0;
padding:7px 10px 3px 50px;
background:url("greentop.jpg") top left ;
}

.teasermid{
margin:0;
padding:0 10px 3px;
background-image:url("greenmid.jpg") ;

}
.teaser p, .teaser a.more {
margin:0;
padding:0 10px 3px;


}
.teaser a.more {
display:block;
text-align:right;
background:url("tsr-a.gif") 410px 50% no-repeat;
padding:0 24px 0 0;
text-decoration:none;
color:#44a;
}
.teaser a.more:hover {
text-decoration:underline;
}
</style>
</head>
<body>
<div class="teaser">
<h3>Top</h3>
<div class="teasermid">
<p>middle</p>
<p>&nbsp;</p>
<p>&nbsp; </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
bottom</div>

Last edited by Gurpreet82; Feb 21st, 2007 at 17:28.
Reply With Quote
  #6 (permalink)  
Old Feb 22nd, 2007, 02:00
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css rounded boxes ontop of each other

Looks like the gradient image is bigger than the box it's in.
Reply With Quote
  #7 (permalink)  
Old Feb 22nd, 2007, 18:46
Junior Member
Join Date: Mar 2006
Location: uk
Age: 26
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css rounded boxes ontop of each other

your right.

Another question - how would i set up the divs to display the boxes on top of each other?
Reply With Quote
  #8 (permalink)  
Old Feb 22nd, 2007, 22:45
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css rounded boxes ontop of each other

position: absolute; and z-index: 1;, z-index: 2;, etc.
Reply With Quote
Reply

Tags
css, design, layout

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
rounded boxes with CSS stupid dog Web Page Design 7 Aug 21st, 2007 18:22
css rounded corners geoffmuskett Web Page Design 8 Jan 4th, 2007 20:40
Css rounded div corners AdRock Web Page Design 2 Aug 7th, 2006 13:25
Rounded Rectangle gwx03 Graphics and 3D 2 Dec 16th, 2003 10:31


All times are GMT. The time now is 10:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43