Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
  1. #1
    Senior Member Blackhawk095's Avatar
    Join Date
    May 2011
    Location
    Kentucky (USA)
    Posts
    384
    Member #
    27969
    Liked
    45 times
    A few days ago, I got my first "real" client web design job. She is a new author that is trying to get some of her work published. This website is to help her gain some publicity and have a way for people to contact her.

    As part of the design, I created a ribbon that would hold the horizontal navigation in it. I have checked the design in IE, Chrome, Safari, and Mozilla Firefox. The design looks great in all of the browsers except for IE. The ribbon is completely disfigured.

    Also, I set up the social buttons (at the bottom-right), so that when you roll over them, the opacity changes from .5 to 1 in a smooth transition. But in IE, this transition doesn't occur over time like it should. It immediately changes.

    Are there any IE hacks or tips that could help me out?

    Here is the design: http://my-testing-area.netne.net/oth...hor/index.html
    [COLOR=rgb(0, 51, 102)]Student Web Designer[/COLOR]
    [COLOR=rgb(0, 51, 102)]If you thought something I said was helpful. LIKE IT![/COLOR]

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    http://www.quirksmode.org/css/opacity.html <-- there's your IE opacity answer.

    As far as your triangles are concerned, I'd just use background images. There really isn't a consolidated CSS answer for those types of effects. Everyone has their own take:

    http://www.w3schools.com/css3/css3_2dtransforms.asp

    Yes, you could blame IE, but in this case, none of the browser makers are right, and neither are those who determine CSS spec. A property should be universal, or it shouldn't be used at all. Opacity is in the same boat...different browsers require different properties to get them to work, and that's just silly. In other words, everyone involved is wrong.
    AlphaMare likes this.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Senior Member Blackhawk095's Avatar
    Join Date
    May 2011
    Location
    Kentucky (USA)
    Posts
    384
    Member #
    27969
    Liked
    45 times
    I tried adding the IE extension (I don't really know what it's called) to the CSS. It didn't do anything. I'm sure I inserted it correctly. Do you see any issues?

    I don't know how to make the triangles myself in Photoshop. So I'm trying to stick with CSS.

    Here is the CSS for the ribbon:
    Code:
    #hnav {
        width: 944px;
        height: 40px;
        margin: auto;
        background-image: url(ribbon_main.png);
        background-repeat: repeat-x;
    }
    
    #ribbon {
        background-image: url(ribbon_main.png);
        height: 40px;
        margin: 2em 0em 0em -1.5em;
        width: 944px;
    }
    
    .leftTriangle {
        display: block;
        border-color: transparent transparent transparent #d97;
        border-style: solid;
        border-width: 16px;
        -moz-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        position: relative;
        left: 6px;
        top: 24px;
        width: 0px;
        height: 0px;
    }
    
    .rightTriangle {
        display: block;
        border-color: transparent transparent transparent #d97;
        border-style: solid;
        border-width: 16px;
        -moz-transform: rotate(-135deg);
        -webkit-transform: rotate(-135deg);
        -ms-transform: rotate(-135deg);
        position: relative;
        left: 906px;
        top: -8px;
        width: 0px;
        height: 0px;
    }
    [COLOR=rgb(0, 51, 102)]Student Web Designer[/COLOR]
    [COLOR=rgb(0, 51, 102)]If you thought something I said was helpful. LIKE IT![/COLOR]

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    I don't see where you added it.

    Add the last example from the link I posted to #social img, and you should see it.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Senior Member Blackhawk095's Avatar
    Join Date
    May 2011
    Location
    Kentucky (USA)
    Posts
    384
    Member #
    27969
    Liked
    45 times
    I haven't changed the opacity yet. right now, I mainly want the ribbon fixed. I'll check out the opacity later.
    [COLOR=rgb(0, 51, 102)]Student Web Designer[/COLOR]
    [COLOR=rgb(0, 51, 102)]If you thought something I said was helpful. LIKE IT![/COLOR]

  7. #6
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Oh. That I don't know. Again, I'd just go into PS and draw the triangles using the Pen tool. I'm not a graphic guy, but they're simple shapes, and that will provide cross-browser compatibility.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  8. #7
    Senior Member Blackhawk095's Avatar
    Join Date
    May 2011
    Location
    Kentucky (USA)
    Posts
    384
    Member #
    27969
    Liked
    45 times
    How would I know the exact size to make the shape?
    [COLOR=rgb(0, 51, 102)]Student Web Designer[/COLOR]
    [COLOR=rgb(0, 51, 102)]If you thought something I said was helpful. LIKE IT![/COLOR]

  9. #8
    WDF Staff m3n0tu18's Avatar
    Join Date
    Jul 2011
    Location
    Devon, UK
    Posts
    1,467
    Member #
    28473
    Liked
    265 times
    it was quite easy. Go to photoshop, or whatever editor you have. create a 20x20px transparent square.
    once thats done, zoom in so you can see the design. Select the selection tool and create a triangle in one of the corners going over half of the 20 x 20 so it looks similar to this [\] <--cruude drawing but you should get the point. Once thats done click your fill tool and fill it the color of your choosing.
    Leave the other side so it is transparent and save. <-- do one side and get it right before working on the next.

    for the css:
    make your menu div position:relative;
    create a class called .leftimg {background-image:url(../images/leftimg.png);position:absolute;bottom:-20px;left:-1px;}

    This should embed the image below and slightly to the left of the menu div.

    Just put in .leftimg in your css in the correct place and it should do the rest of the work.

    Tip for you i did notice. With the background ribbon you need to make it the exact size of your menu div or vice versa as it looks out of proportion at the moment.

    Hope this helps
    If you like my comments to your thread please click the LIKE button

    Check out my portfolio: Here!
    View my company Facebook Page
    View my company Website

    <<Plrease ignoer my typo's I have isdexlyia>>

  10. #9
    Senior Member Blackhawk095's Avatar
    Join Date
    May 2011
    Location
    Kentucky (USA)
    Posts
    384
    Member #
    27969
    Liked
    45 times
    I made the images and tried adding them to the design. Right now, I can't even see the images. I have tried adding the class in a span and div. They won't appear.

    Here is the HTML code:
    Code:
    #ribbon_wrapper {
        wdith: auto;
        height: 50px;
        position: relative;
        top: 200px;
        margin: auto;
    }
    
    #hnav {
        width: 944px;
        height: 40px;
        margin: auto;
        background-image: url(ribbon_main.png);
        background-repeat: repeat-x;
        position: relative;
    }
    
    #ribbon {
        height: 40px;
        margin: 2em 0em 0em -1.5em;
        width: 944px;
    }
    
    .leftTriangle {
        background-image: url(ribbon_left.png);
        background-repeat: no-repeat;
        position: absolute;
        left: -1px;
        bottom: 20px;
    }
    
    .rightTriangle {
        background-image: url(ribbon_right.png);
        position: relative;
        left: 906px;
        top: -8px;
        width: 20px;
        height: 20px;
        position: ablsolute;
    }
    [COLOR=rgb(0, 51, 102)]Student Web Designer[/COLOR]
    [COLOR=rgb(0, 51, 102)]If you thought something I said was helpful. LIKE IT![/COLOR]

  11. #10
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Add z-index: 5; to .leftTriangle and .rightTriangle (you should only need 1, but to be sure, let's crank it up a bit.)
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:51 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com