Reply
Border Background Help!
Old 03-07-2008, 01:33 AM Border Background Help!
Junior Talker

Posts: 2
Name: Lyndon
Hi All,

Please excuse me if this has been asked a million times (I cant seem to find a thread on it!).

How do I create a border background - like this site http://www.stuff.co.nz/ the shaded border to the left and right of the body).

Any help appreciated.


Regards

Lyndon
maceotago is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 03-07-2008, 04:37 AM Re: Border Background Help!
chrishirst's Avatar
Super Moderator

Posts: 12,804
Location: Blackpool. UK
Simplest way is to create a graphic with the design you want for the shadowing/border as a thin horizontal section that is the same width as the content column will be. Then set it as the background for the element.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-07-2008, 11:32 AM Re: Border Background Help!
Experienced Talker

Posts: 35
Name: Rob
Location: Tampa Florida
If your width is static (like that site) then you can create a single horozontal image with the drop shadows being defined outside the width of the site. If you want an example, just right-click on the border and select "Save Background As" - open it in explorer and you'll see how they created it.

If you're site is scalable, meaning that it changes width depending on the view or screen resolution of the user, then you'd have to break that image apart and have one for the left and one for the right. Put them into place using CSS and you're all set.

Hope that helps.
LanceUppercut is offline
Reply With Quote
View Public Profile
 
Old 03-07-2008, 11:35 AM Re: Border Background Help!
Experienced Talker

Posts: 35
Name: Rob
Location: Tampa Florida
If you don't know what I mean by a scalable width, use this website as an example. Maximize the window and see how the page stretches. Also, if you resize your browser window, the site's width will scale as you move it around.

This is a good practice to use but the site you pointed out as a sample has a static width as far as I've seen. But I only visited the index to view the background border.
LanceUppercut is offline
Reply With Quote
View Public Profile
 
Old 03-09-2008, 05:45 AM Re: Border Background Help!
Junior Talker

Posts: 2
Name: Lyndon
Fantastic thanks Guys - worked a treat!
maceotago is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Border Background Help!
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13811 seconds with 13 queries