Welcome to TalkGraphics.com
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Friesland, Holland
    Posts
    651

    Post Image on menu bar, how did they do that ?

    Hi, on this website there's sitting a little womanfigure on the menubar. How did they do that?
    Marcia
    A mind is like a parachute, it doesn't work unless it's open.
    Frank Zappa

  2. #2
    Join Date
    Jan 2006
    Posts
    2,439

    Default Re: Image on menu bar, how did they do that ?

    Hi Marcia,

    the image is surrounded from an <a>-tag (CSS class "diane") and in the stylesheet you'll find the following CSS for an <a>-tag with class "diane":

    PHP Code:
    #o_header a.diane {hp.css (line 19)
      
    left:820px;
      
    position:absolute;
      
    top:26px;
      
    z-index:2;

    That means, the image is positioned at x=820, y=26 within the surrounding <div id="o_header">-tag. Additionally, the z-index positionize the image above the following parts.

    The image is a transparent GIF.

    Regards,
    Remi

  3. #3
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,659

    Default Re: Image on menu bar, how did they do that ?

    Quote Originally Posted by MarciaB View Post
    Hi, on this website there's sitting a little womanfigure on the menubar. How did they do that?
    I think this is what does the (CSS) trick:

    #o_header a.diane {position:absolute;left:820px;top:26px;z-index:2;}

    The z-index is higher than the menu bar and the link/image is positioned absolutely.

    You can find this CSS definition in the included CSS file (http://i5.woopic.com/Css/hp.css?11000) loaded in the html.

    Paul

  4. #4
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,659

    Default Re: Image on menu bar, how did they do that ?

    Beat me to it Remi!

  5. #5
    Join Date
    Jan 2006
    Posts
    2,439

    Default Re: Image on menu bar, how did they do that ?

    Sorry

  6. #6
    Join Date
    Aug 2006
    Location
    Friesland, Holland
    Posts
    651

    Post Re: Image on menu bar, how did they do that ?

    Thanks guys !
    Marcia
    A mind is like a parachute, it doesn't work unless it's open.
    Frank Zappa

  7. #7
    Join Date
    Nov 2004
    Location
    Israel
    Posts
    2,538

    Default Re: Image on menu bar, how did they do that ?

    I will be short - www.cssplay.co.uk the best place to learn from css. Starts from simplest css rollovers and up to the most complex css tricks. the code is within the page so just click view source and copy it.

 

 

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
  •