Advanced Search

Results 1 to 4 of 4

Thread: css gradient help

  1. #1
    Join Date
    Oct 2006
    Posts
    92
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default css gradient help

    hi i am looking to make a gradient using css to save on load time
    i am going to be using them in a menu

    i was wondering if there is a way of doing so

    i would like to make a gradient from 3366ff to 0000ff

    thanks in advance

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    this cannot be done with css alone.

    what you can do though is create a 1 pixel wide by X length than use CSS to repeat it on the x axis

    Code:
    selector {
         background: #000000 url('__image__') repeat-x top left;
    }
    its always a good idea when assigning a background image to assign a background color similar to offset the affects for the image cannot be displayed for some reason

  3. #3
    Join Date
    Oct 2006
    Posts
    92
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    i was thinking using only css not an image

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by boogyman
    this cannot be done with css alone.
    ^^^^^^^^

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
  •