Results 1 to 2 of 2

Thread: Using CSS Gradients for Dynamic Pages

  1. #1
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using CSS Gradients for Dynamic Pages

    I have many areas in my site that I want to apply gradients with css and images however the areas are dynamic. Is there a way to address this issue and make the gradients change with Height?

  2. #2
    Join Date
    May 2007
    Location
    Gold Coast, Australia
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you want to make a gradient background image expand to suit the height of a particular container, I don't think this is possible.

    But in such instances, what I do is set the gradient so that it suits the most common height, and then taper that gradient off to a single color so that if the height expands, it wont look too bad.

    If you have a gradient tat starts with light blue, and ends with dark blue (say) 100 pixels, then make an image 500 pixels high and 1 pixel wide -- where the bottom 400 pixels is all dark blue.

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
  •