Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2006, 05:54 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default Layer Problem

I'm working on a site that uses CSS TAB hovers in an ordered list. All items in the ordered list use the same background image which is one large image at 900x900 pixels spilt into two sections - which enables each TAB to expand when text is increased.

The TABS are displayed using x2 unordered lists. What I would like to do is have the top layer fall behind the first layer. I have tried using negative margins, but because of how the TAB graphic is displayed when I decrease the margin with negative value the size just shrinks.

I was wondering if anyone has come across this problem before? and had any suggestions?

the CSS used for the TABs are as follows:

Code:
ul { margin:0; padding:0; list-style: none; width:800px; float:left; }

ul li { float:left; background: url(images/tab-right.gif) no-repeat top right; }

li a { display:block; padding: 0 0.4em; 
    background: url(images/tab-left.gif) no-repeat top left;
    text-decoration:none;
    color:#666; float:left; font-size:0.66em; line-height:2.5em; 
    }

ul a:hover { color:#f60; text-decoration:underline; }
And a preview of the links are available here:

http://www.mediamole.net/vivanco/master2/index2.html


And finally, on increasing the text size in IE the Vacuum Bag links expands in height, rather than going to a new line like the other TABS, why is this? is there a bug in the code?
Any suggestions?

Gaz
__________________
Gaz
 
Old June 15th, 2006, 06:36 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

The Microphones & Headsets tab stacks too... Add this.

ul li { white-pace: nowrap }

The problem with the background images, does it work if you make the little white corners transparent?

--
http://yupapa.com
 
Old June 15th, 2006, 06:57 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Thanks for the tip about white-space, that worked a treat!

And I guess must be tired, as I thought the corners to the image were transparent doh!

Gaz
 
Old June 16th, 2006, 04:20 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Thanks once gain for all your help. On the subject of layering and positioning, does anyone know why the footer links at the bottom of the design fall into DIV below when viewed in Firefox? The link to the site is as above

Gaz
 
Old August 2nd, 2006, 12:33 PM
Authorized User
 
Join Date: Jan 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by socoolbrewster
 Hi

Thanks once gain for all your help. On the subject of layering and positioning, does anyone know why the footer links at the bottom of the design fall into DIV below when viewed in Firefox? The link to the site is as above

Gaz
Had a quick look at the code, maybe the 35px height you specified isn't tall enough to accomodate the text? That's my first thought.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Handle error from database layer to applican layer khatu_jec ASP.NET 2.0 Basics 1 November 9th, 2008 03:51 PM
Menu layer wdwright BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 18th, 2007 08:11 PM
onClick outside a layer markp Javascript How-To 1 July 8th, 2004 08:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.