Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > css div background image auto resize

css div background image auto resize
Thread Tools
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Sep 27, 2005, 06:43 PM
 
ok is this possible to do though css???
helping a friend edit his forums around we used a css style sheet from a site were he wanted the style from (a style site so its all ok)

the image though was made for users 800 x 600 monitor size so its small even on my monitor.

is there a way to have the background image be auto resized to fill the div tag?

when you view his forums you will see what im talking about this has to be done though css because he choose a free site to host his forums... he dont want to change because its a big site... big site..

http://s8.invisionfree.com/Lords_of_...ex.php?act=idx

heres the css part that deals with that div

Code:
.maintitle {text-align:center;background-repeat:no-repeat; vertical-align:middle;font-weight:bold; color:#ffffff; letter-spacing:1px; padding:8px 0px 8px 5px; background-color: #; background-image: url(http://img339.imageshack.us/img339/1861/00kz.jpg) }
Thanks and hopefully you can help me to this question... i searched google with no luck to much other stuff on how to do css basics instead of what i needed
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Sep 27, 2005, 07:24 PM
 
Although resizing the <img> tag through CSS is easy, resizing background images through css is only just now being finalized as part of CSS3, and I'm not sure anyone implements that part of CSS3 yet. In earlier levels of CSS you can tile background images, and in CSS2 you get some control over how the tiling works, but they didn't get around to doing stretching until CSS3.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 07:38 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2