Results 1 to 10 of 27

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    64
    Plugin Contributions
    0

    Default Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    I want my NavMainWrapper to look exactly like this.

    It is possible to replicate this 100% with CSS?







    Anti-Aliased Rounded Corners, Drop Shadow and preferably (but not imperative) a Gradient Fill.

    All without using ANY images whatsoever ??

    any CSS gurus out there got a simple solution? :)

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    Quote Originally Posted by renaissanceart View Post
    I want my NavMainWrapper to look exactly like this.

    It is possible to replicate this 100% with CSS?







    Anti-Aliased Rounded Corners, Drop Shadow and preferably (but not imperative) a Gradient Fill.

    All without using ANY images whatsoever ??

    any CSS gurus out there got a simple solution? :)
    Solution: yes! simple: not really!

    You'll have to combine several css methods to accomplish what you want.

    Drop Shadow:
    Look at this tutorial

    Although it uses an image.

    The closest you'll get to a drop shadow without an image is to use a border-bottom declaration in your stylesheet.

    Rounded Corners:
    Look at this tutorial

    OR

    This one

  3. #3
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    If it involves 4-5kb of js and css, why not just use a 2-3kb image directly. Images aren't evil. :-)
    Last edited by Nimbuz; 15 Nov 2007 at 10:06 AM.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

  4. #4
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    Quote Originally Posted by Nimbuz View Post
    If it involves 4-5kb of js and css, why not just use a 2-3kb image directly. Images aren't evil. :-)
    Agreed. A couple of images set as sliding doors would be a lot easier to set up and maintain.

    Regards,
    Christian.

  5. #5
    Join Date
    Oct 2007
    Posts
    64
    Plugin Contributions
    0

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    Quote Originally Posted by CJPinder View Post
    Agreed. A couple of images set as sliding doors would be a lot easier to set up and maintain.

    Regards,
    Christian.

    Hmm whats this sliding doors method ?

    The problem i have is theres a complex textured background image. So the transparency in the shadow is neccessary. I can achieve this by saving the image as a PNG or Gif. But, the next problem i'm faced with is the rounded corners.

    Is this what your talking about with the sliding door? So have 3 images. 1 on each end which are rounded. Then a Centre image tiled ?

    I know i could do this in tables in a matter of seconds. Not sure about CSS?


    Thanks for the help guys, much appreciated!

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Replicating this with CSS? -> Shadow, Roundcorner, Gradient

    Quote Originally Posted by renaissanceart View Post
    Hmm whats this sliding doors method ?

    The problem i have is theres a complex textured background image. So the transparency in the shadow is neccessary. I can achieve this by saving the image as a PNG or Gif. But, the next problem i'm faced with is the rounded corners.

    Is this what your talking about with the sliding door? So have 3 images. 1 on each end which are rounded. Then a Centre image tiled ?

    I know i could do this in tables in a matter of seconds. Not sure about CSS?


    Thanks for the help guys, much appreciated!
    Check this article on the sliding door method

 

 

Similar Threads

  1. v154 Not sure how to go about this - "replicating shop"
    By samisoaps in forum General Questions
    Replies: 2
    Last Post: 23 Jan 2016, 01:20 PM
  2. v151 CSS button problem: gradient background with IE
    By su35 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jun 2013, 09:36 PM
  3. Can I do this with CSS
    By ThePatch in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 May 2007, 09:32 PM
  4. CSS drop shadow text
    By studeo in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 28 Jan 2007, 10:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg