Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sizing graphic for the web

Status
Not open for further replies.

bch33

Technical User
Oct 13, 2001
151
US
Using PS, what is the best size to make a graphic that is to extend across the entire top of a webpage, (I want it about 100 pixels high but not sure width -wise how long to make it so that it fits the full length no matter what resolution its viewed in on the web.)

Thanks
bch
 
You need to use CSS for what your after seeing as though anyone can have any resolution.

<style type=&quot;text/css&quot;>
<!--
.yourbgname { background-attachment: scroll; background-image: url(images/topbg.gif); background-repeat: repeat-x; background-position: right top}
-->
</style>

This is the code for your repeated BG. This way you only need to use a little of your graphic and it will be repeated across the top.

If you are using a background that you have to place in whole because of the shape etc. then (I think) that you would change the background-repeat section to none (instaed of repeat-x;

If you have any more questions about this then you'd be better off in the HTML/CSS forum.
funkymonk2.jpg


rod@sameplanet.co.uk
********************
 
I forgot about CSS for background-- that should do it
Thanks much
bch
 
Change of identity? Or just forgot your password? :)

Anyway, no problem.....

funkymonk2.jpg


rod@sameplanet.co.uk
********************
 
still bch -- just forgot password
too funny
bch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top