|
| |
|
|
womble
Posts: 5461 Joined: 3/14/2005 From: Living on the edge Status: offline
|
Background image and drop shadow - 3/24/2006 7:04:03
I'm in the early stages of working at the moment on a site that I'm wanting to use a background image with a drop shadow as a background for (the image would just be a plain "box" with a drop shadow on the right and bottom). My problem is that it's likely that not all of the pages will be the same length so if I made the background image say 750 x 1200, on some pages it would be too long, and on others too short and the text would overspill the background image. Because of recycling images/using cached images etc. I didn't really want to have to specify a seperate image for each page. The only way I could think of to get round it would be to use a seperate image for different portions of the page, but I couldn't figure out how that would work because I'd still need multiple images potentially. Thoughts? Suggestions? (No code/url as yet - this is just a theoretical "can this be done?" at this stage)
_____________________________
~~ "A cruel god ain't no god at all" ~~
|
|
|
|
Tailslide
Posts: 5915 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: Background image and drop shadow - 3/24/2006 9:35:41
quote:
ORIGINAL: Donkey How about 3 divs one atop the other. The bottom one stays a fixed height and uses a fixed background image of the bottom of the box and the bottom shadow. The top one stays a fixed height and uses a fixed background image of the top of the box showing the shadow slightly offset from the top. The middle one is variable height and uses a thin "cross section" image set to repeat vertically. You might have to put the three into a container div to get it to work, and I'm not sure about the code without playing with it for several days but I imagine there is a way to do it. This is more or less what I do on my current site.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
reformed hater
Posts: 167 Joined: 2/1/2006 From: The land of sun and hurricanes; US Status: offline
|
RE: Background image and drop shadow - 3/24/2006 12:05:39
quote:
For the middle bit you take a small slice of the image (which in my case would be a rectangular white 'box' with the drop shadow on the right) Now I get that. ok well then I guess my question (maybe) is the shadow? in your new project, Womble, are you drawing the shadow/& box w/ shadow somewhere else or is all that done using CSS.
_____________________________
When asked what the White House was like by a British student George W. Bush responded 的t is White"
|
|
|
|
womble
Posts: 5461 Joined: 3/14/2005 From: Living on the edge Status: offline
|
RE: Background image and drop shadow - 3/24/2006 15:58:49
quote:
ORIGINAL: reformed hater You "cheecky" Brits and your wierd language. Learn how to spell! And just who are you calling weird, huh? *sigh* Damned 'mericans - give 'em some independance, and what do they do? Start spelling stuff just how they please, driving on the wrong side of the road and electing a shrub to govern! In answer to your question RH, at the moment I'm using a mixture of graphics and css. I've got two test pages, one that's a graphic where the text isn't likely to overspill so I've done okay with just one graphic, and the other that at the moment's just plain css with no drop shadow (the subject of my query - I thought it was quite a good idea if all the pages kind of looked the same ). I'd sort of got Donkey's response in the back of my mind somewhere, but unfortunately my brain's not fully functioning at the moment, but now with the appearance of Tail and Spit....oooooh it's all so exciting! Tail, you are indeed Queen of Cyberspace (I cannot recall the particular instance for which that title was bestowed upon you - there are of course so many instances of your brilliance), but Uncle B! (that's Sir Spitfire to you RH ) Grpahic-less drop shadows! That's just. Just. Wow! I'm going to have a lovely weekend playing! Self Appointed President of the Tailslide Fan Club
_____________________________
~~ "A cruel god ain't no god at all" ~~
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|