Background question

This is a discussion on "Background question" within the Web Page Design section. This forum, and the thread "Background question are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 25th, 2008, 22:44
New Member
Join Date: Feb 2008
Location: Sherwood Park Alberta Canada
Age: 20
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Background question

Im trying to get a background picture to fit a certain area

heres the code

Quote:
.post {
background: url(images/img0.jpg);
margin-bottom: 23px;
padding-bottom: 237px;
border:5px solid #6B6B6B; /*yellow Border*/
line-height: 200%;
color: #000000;/*white*/
height: 359px
}
I could just resize my image, but i have to do this for multiple images, and want them just to resize to the correct size
Reply With Quote

  #2 (permalink)  
Old Feb 26th, 2008, 06:14
Junior Member
Join Date: Feb 2008
Location: Poreč
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Background question

Not 100% sure, but I think it's not possible to resize background images with CSS. You can only position the image or set the repeat horizonta/vertical/both.

I found this (with javascript), but dynamically resized images will never look the same as images resized with PS or GIMP...
Reply With Quote
  #3 (permalink)  
Old Feb 26th, 2008, 08:20
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Background question

Why have u got a margin-bottom AND padding bottom? Have u got a link or screenshot of your site? I dont think it matters but u have missed the';' off at the end of ' height: 359px', put it on just in case
Reply With Quote
  #4 (permalink)  
Old Feb 26th, 2008, 18:05
Ed Ed is offline
Highly Reputable Member
Join Date: Jul 2007
Location: Cork, Ireland
Posts: 688
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Background question

Quote:
Originally Posted by skitson View Post
Im trying to get a background picture to fit a certain area

I could just resize my image, but i have to do this for multiple images, and want them just to resize to the correct size
Unfortunately, this is only a feature in CSS3, which is not widely (or properly) supported yet.

It looks like you'll just have to re-size them.

Ed.
Last Blog Entry: Happy New Year! (Dec 31st, 2007)
Reply With Quote
Reply

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Background Oak Graphics and 3D 12 Mar 2nd, 2008 00:37
Background alexgeek Graphics and 3D 10 Oct 22nd, 2007 01:04
Background in a div casho Web Page Design 28 Aug 15th, 2007 20:24
Background or img? rubyfruit Web Page Design 7 Nov 9th, 2006 06:22
Background and Resolution compatibility, My background gets cut off Funion Web Page Design 1 Dec 4th, 2005 04:42


All times are GMT. The time now is 04:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43