Results 1 to 4 of 4

Thread: CSS mouse concerning in Html

  1. #1
    Join Date
    Jan 2009
    Posts
    62

    CSS mouse concerning in Html

    hi
    i am looking for code which help me to make web page in html.
    i want to add menu as follow with mouse movement on that .
    * News
    * Downloads
    * Tutorials
    * Script
    * Reviews
    please help me to do that ,i am noy good in this so please kindly help me .
    thank you

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: CSS mouse concerning in Html

    We will make therefore a menu with mouse over impact. The simplest manner to get this impact is by simply the attribute: hover to use. Almost all modern browsers support this (IE7, FF, opera & safari). Then you therefore as follows are able do:

    Code

    <ul id= menu >
    <li><a href= # >News</a></li>
    <li><a href= # >Downloads</a></li>
    <li><a href= # >Tutorials</a></li>
    <li><a href= # >Scripts</a></li>
    <li><a href= # >Reviews</a></li>
    </ul>

    Code

    ul#menu li {
    background-color: #99cc00;
    width: 120px;
    }
    ul#menu li: hover {
    background-color: #ffcc00;
    }

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: CSS mouse concerning in Html

    We start with an empty document. We use simply the same html.

    Code

    <ul id= menu >
    <li><a href= # >News</a></li>
    <li><a href= # >Downloads</a></li>
    <li><a href= # >Tutorials</a></li>
    <li><a href= # >Scripts</a></li>
    <li><a href= # >Reviews</a></li>
    </ul>
    Only uses we something other css:

    Code

    ul#menu a {
    background-color: #99cc00;
    posting: block;
    width: 120px;
    }
    ul#menu a: hover {
    background-color: #ffcc00;
    }
    We have: hover - attributes on a - elements put. This a - elements have we in the css posting: block; given. That ensures that he the link as block - element sees. You have elements in html two different types: block and inline. Block-element are things as div's and tables. Inline-element are upholstering. Therefore a piece text in <p> or a blade by means of the <img>-tag.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: CSS mouse concerning in Html

    Because we posting: block; have given now thinks the browser which it a - element in this menu block-element are. How we him can a breadth give altitude and such.

    Instead of background-color can use you of course also background image to support a blade there.

Similar Threads

  1. Replies: 10
    Last Post: 01-10-2011, 04:08 PM
  2. Changing link color when moving mouse over link in HTML
    By Cade in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 07:46 PM
  3. Replies: 3
    Last Post: 22-09-2009, 01:12 PM
  4. Replies: 4
    Last Post: 24-09-2008, 05:01 PM
  5. Microsoft Wireless Laser Mouse 6000 & Mouse 7000
    By Rawko in forum Portable Devices
    Replies: 3
    Last Post: 06-02-2008, 02:28 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,166,971.05883 seconds with 16 queries