Need help making my menu transparent

Discussion in 'HTML & Website Design' started by premiumdomainer, Oct 22, 2013.

  1. #1
    Hi

    Using dreamweaver to build an html website.

    Need help making my menu background transparent.

    Any suggestions?

    thx in advance

    want to make transparent.JPG
     
    Last edited: Oct 22, 2013
    premiumdomainer, Oct 22, 2013 IP
  2. WonderingCoder

    WonderingCoder Greenhorn

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #2
    I think the only way is to do it through Photoshop.

    Try these links:
    http://www.absolutecross.com/tutorials/photoshop/transparent-gifs
    http://www.lunaloca.com/tutorials/antialiasing/

    Hopefully your "menus" are images, right?
     
    WonderingCoder, Oct 22, 2013 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    If you're doing those as solid colors, declare them as RGBA
    background:rgba(64,64,64,0.5);

    Would give you a dark gray that's 50% opaque. Only works in IE8+ though, so just beware of that.

    You could also make the entire element translucent using the opacity property, but that would also change how the text is rendered, and translucent background has bad enough legibility issues without further screwing things over.

    NOT that accessibility is likely on your design list since you're putting a massive fixed size image on the page, AND are working in the steaming dung heap known as Dreamweaver.
     
    deathshadow, Oct 23, 2013 IP
  4. GFX2

    GFX2 Well-Known Member

    Messages:
    764
    Likes Received:
    80
    Best Answers:
    8
    Trophy Points:
    125
    #4
    You could use an image for your button's background. Open up Photoshop. Create a new file with desired dimensions. Fill it with whatever color you want and in the layer's window find Opacity and put it to your desired percent.
     
    GFX2, Oct 23, 2013 IP
  5. Champ Themes

    Champ Themes Greenhorn

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    23
    #5
    why not just make the color a few notches lighter than background would give the illusion, then put border: 1px solid #few notches darker than background; )
     
    Champ Themes, Oct 24, 2013 IP
  6. Erin Catorina

    Erin Catorina Member

    Messages:
    155
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #6
    Hope this will help,
    div#menu1 ul.rMenu {
    background: transparent;
    border: none;
     
    Erin Catorina, Oct 29, 2013 IP
  7. TwitterWizard

    TwitterWizard Peon

    Messages:
    21
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    3
    #7
    Transparent, or opaque?

    If you want it to be fully transparent, then just don't set anything for the background, or as was suggested above use photoshop to create your menu items as transparent images.

    Otherwise, you can use CSS to set the level of opacity.

    #menu
    {
    opacity:0.4;
    filter:alpha(opacity=40); /* For IE8 and earlier */
    }
     
    TwitterWizard, Oct 29, 2013 IP