Technology, Web & Business Forum

You are here: Technology, Web & Business Forum : Web Development : Design : CSS/HTML: dimensions of background?


Welcome to the Technology, Web & Business Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.


Design Talk about web design techniques and ideas in CSS, HTML, etc.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2008
Junior Member
 
Join Date: Mar 2008
Posts: 4
Default

Background images are whatever size the image is. They cannot be scaled.

If the element to which the background image is applied is smaller than the image, then the image will be cropped. If it is larger, then the image will be tiled (unless you use the background-repeat property to prevent that).

By combining multiple images you can create the illusion of an image that stretches. For example, given a div containing a heading, some content, and a footer you can assign one background image to the heading, one to the footer and one to the div itself. The header and footer images are set to not repeat, while the main div background does. This way you can have corners and top and bottom borders provided by the header and footer, while left and right edges come from the image that is tiled.

Adding a few more elements and you allow the image to scale horizontally as well as vertically.
__________________
Powered by Yahoo! Answers
Reply With Quote
  #2 (permalink)  
Old 05-27-2008
Junior Member
 
Join Date: May 2008
Posts: 1
Default CSS/HTML: dimensions of background?

what's the standart dimensions of an image background in webpages? and... how do I make it dynamic like if the page contains a long list downward...?
__________________
Powered by Yahoo! Answers
Reply With Quote
Reply

Thread Tools
Display Modes

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

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


All times are GMT -5. The time now is 12:47 PM.