Wrox Programmer Forums
|
BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3
This is the forum to discuss the Wrox book Beginning CSS: Cascading Style Sheets for Web Design by Richard York; ISBN: 9780764576423
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 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 December 14th, 2005, 05:19 PM
Authorized User
 
Join Date: Nov 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to horseatingweeds
Default simple css menu example

Does anyone know of a simple example of a css drop down menu? I am trying to learn how to make them and the JT's web site is confusing me.

 
Old December 14th, 2005, 06:37 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

> I am trying to learn how to make them and the JT's web site is confusing me.

If you have a specific question I'd be happy to answer it. I take all of the book feedback very seriously, but if I don't know what a reader's concerns are then I won't be able to take that into consideration for the 2nd edition.

That said; it's really simple, actually. Here's a very condensed version.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title></title>
        <style type='text/css'>
            ul {
                list-style: none;
                background: white;
                border: 1px solid rgb(128, 128, 128);
                width: 200px;
                marign: 0;
                padding: 0;
            }
            ul > li {
                position: relative;
                padding: 3px;
            }
            ul ul {
                position: absolute;
                top: 0;
                left: 100%;
                display: none;
            }
            li:hover > ul {
                display: block;
            }
        </style>
    </head>
    <body>
         [list]
             <li>
                menu
                [list]
                    <li><a href='#'>test</li>
                </ul>
             </li>
         </ul>
    </body>
</html>
HTH!

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old December 14th, 2005, 07:30 PM
Authorized User
 
Join Date: Nov 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to horseatingweeds
Default

Very helpful, thank you.

What I mean by confusing me is simply that the JT's web site is very complex to someone with my level of CSS understanding. It is a very good example for this book for the reasons that it can serve under so many different subjects and show what CSS is capable of. However, in studding through the book I did find myself often overwhelmed by this "complexity". I found more benefit from the smaller examples and exercises such as the widgets and what knots. If I where to make a suggestion to someone to whom I believe is in no need of my amateur suggestions it would be to use several different less complex sites concentrated under different main subjects. The JT's web site would certainly make a good Ch.19 "Putting it all together" chapter.

In a month or so hopefully I will look back on this thread and think of myself as an idiot for thinking that JT's web site is complex. But, since I am a beginner, and the book is written for me, my useless advice could be valuable....

I did very much enjoy your book though! It has been a while since I have wrinkled some many of a single book's pages. I am actually resting my forearms on it now. It can also be accredited with hooking me up to the Wrox series. This is one book buyer who will always look to wrox for instructional books first.







Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Menu - Top list item not showing up in IE kwilliams CSS Cascading Style Sheets 1 October 26th, 2007 09:10 AM
CSS Dropdown menu error in IE6 socoolbrewster CSS Cascading Style Sheets 1 March 23rd, 2006 04:09 PM
CSS + HTML = Vertical Select Menu? kwilliams CSS Cascading Style Sheets 2 January 23rd, 2006 09:02 PM
CSS Menu problem twc02 CSS Cascading Style Sheets 24 March 11th, 2005 11:01 AM
Creating simple Menu godhsf80 Javascript 1 November 30th, 2003 12:23 AM





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