Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0
This is the forum to discuss the Wrox book Beginning CSS: Cascading Style Sheets for Web Design, 2nd Edition by Richard York; ISBN: 9780470096970
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 11th, 2008, 03:46 PM
Registered User
Points: 35, Level: 1
Points: 35, Level: 1 Points: 35, Level: 1 Points: 35, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tabs in Firefox 3 Opera 9.26

I modified project1 of 'CSS Projects Instant Results'. The code is appended below. The tabs works exactly in IE6 but doesn't work in firefox 3 & opera 9.26. Plz help. Where am I going wrong?

HTML 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'>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel='stylesheet' type='text/css' href='tabs.css' />

        <!--[if lt IE 7]>
            <script src="/ie7/ie7-standard-p.js" type="text/javascript"></script>
    <body id='home' bgcolor="lime">
        <ul id='tabs'>
            <img alt="Banner" src="../Aurora/Header.gif" width="999" height="100" /></li>
            <li id='tab1'><a href='home.html'><span>Home</span></a></li>
            <li id='tab2'><a href='films.html'><span>Films</span></a></li>
            <li id='tab3'><a href='docu.html'><span>Documentaries</span></a></li>
            <li id='tab4'><a href='awards.html'><span>Awards</span></a></li>
            <li id='tab5'><a href='studio.html'><span>Studio</span></a></li>
            <li id='tab6'><a href='as.html'><span>About Us</span></a></li>
        <div id='iframe' style="left: 6; right: -6; top: 0; bottom: 0">
            <iframe src='http://home.html' frameborder='0' marginheight='0' marginwidth='0'></iframe>
        <br /><br />

        <p>Welcome to Aurora</p>

CSS Code:
body, html {
    margin: 0;
    padding: 0;
ul#tabs {
    list-style: none;
    margin: 0;
    padding: 10px 0 0 0;
    height: 25px;
    border-bottom: 1px solid black;
    background: rgb(222, 222, 222);
ul#tabs li {
    float: left;
    margin: 0 5px;
    height: 23px;
    text-align: center;
    position: relative;
    width: 150px;
    border: 1px solid black;
    top: 1px;
    background: rgb(128, 128, 128);
ul#tabs li:hover {
    border-bottom: 1px solid white;
    background: white;
ul#tabs a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: white;
    font: 14px Arial, sans-serif;
body#index li#tab1,
body#films li#tab2,
body#documentaries li#tab3,
body#awards li#tab4,
body#studio li#tab5,
body#as li#tab6 {
    background: white;
    border-bottom: 1px solid white;
ul#tabs a:hover,
body#index li#tab1 a,
body#films li#tab2 a,
body#documentaries li#tab3 a,
body#awards li#tab4 a,
body#studio li#tab5 a,
body#as li#tab6 a {
    color: black;
ul#tabs span {
    display: block;
    padding: 4px 10px 0 10px;
div#iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin-top: 50px;
    border-top: 1px solid black;
iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Icons on IE and Firefox Tabs? kennethjaysone HTML Code Clinic 2 January 21st, 2008 04:55 PM
#INCLUDE and OPERA OldCoder ASP.NET 1.x and 2.0 Application Design 0 February 26th, 2006 09:46 AM
about file opera ruchong C++ Programming 0 October 16th, 2004 09:00 PM
using <TEXTAREA> with Opera 5, 6 anshul HTML Code Clinic 5 September 4th, 2004 12:54 AM

All times are GMT -4. The time now is 02:01 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.