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.
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
|||
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 |



Linear Mode
