Web Analytics Made Easy -
StatCounter [Help] Css - CodingForum

Announcement

Collapse
No announcement yet.

[Help] Css

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Help] Css

    Hello, i'm new on codig with html/css and i need a little help.

    I want to know how can i do this image, It's a white/grey image check:



    This is the site where i saw it: www.cloudflare.com if you click on menu the image will appear.

    Thanks if someone will help me,

    Cheers

  • #2
    I'd go over to http://www.dynamicdrive.com , if you have a little look around there, you will find something very similar to this.

    Regards,

    LC.

    Comment


    • #3
      You can add background-image property on hover state of navigation, following is sample

      Code:
      #navi ul li a:hover {
      background:url(images/bg_img.png) center no-repeat;
      }

      Comment


      • #4
        Originally posted by vikram1vicky View Post
        You can add background-image property on hover state of navigation, following is sample

        Code:
        #navi ul li a:hover {
        background:url(images/bg_img.png) center no-repeat;
        }
        Yes thanks, but the problem is that this is a fixed image no? I think that the image must change in base at the number of the chars of the menu. "Help" "Registration" etc...

        Comment


        • #5
          use only 1 in which lengthiest text can fit

          Comment


          • #6
            I saw a very similar example over on DynamicDrive the only difference was that rather than the 'border' changing on click, it changed on hover. If you take the time to look for the effect all you would need to do is change the code slightly for your needs.

            Regards,

            LC.

            Comment


            • #7
              Image-driven, visually compelling user interfaces. Text-based, semantic markup. Now you can have both! Douglas Bowman’s sliding doors method of CSS design offers sophisticated graphics that s…


              This will also apply to your menu.

              Comment


              • #8
                I like using sprite images for image-based menu changes.

                You load one image and to use as a background image for all menu items, but it is a grid-oriented composite of each individual image you would have otherwise needed. Then you just use different background-position settings for each item and then on :hover you change the background-position again to show the "hovered" state of that same single image file.
                The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
                See Mediocrity in its Infancy
                It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
                Seek and you shall find... basically:
                validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

                Comment

                Working...
                X
                😀
                🥰
                🤢
                😎
                😡
                👍
                👎