The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Background Size Trouble
christil
post Jun 20 2012, 11:06 PM
Post #1





Group: Members
Posts: 3
Joined: 20-June 12
Member No.: 17,299



I apologize if this is the wrong forum. I'm ready to pull my hair out over a background image problem I'm having. I know backgrounds will display slightly differently on different monitors due to size and resolution, but mine seems to be getting chopped more than most. I've already tried a little CSS with background auto, etc. without any luck.

When I view my background, my computer displays it perfectly while my husband's chops it. I *know* it's possible to make them show up somewhat the same. When I view classroomfreebies.com on both computers, I can view the crayons at the bottom of the page on both computers. One computer does show slightly more than the other, but I'm still pleased with the look on both computers.

On my website, the frogs keep getting cut off on one computer (left to right and top to bottom). I made a blank blog, but copied the background so I could share the url. http://designtesterforme.blogspot.com/

What on earth do I have to do to get this background fixed?

Thanks!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jun 21 2012, 10:17 AM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



It looks like classroomfreebies is using multiple images manipulated with JavaScript.

The simplest answer is to use the new CSS3 features for resizing background images. But that won't work on all browsers, and it can look funny if the browser isn't shaped like what you expect (tall and narrow, vs wide and short).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
christil
post Jun 21 2012, 10:41 AM
Post #3





Group: Members
Posts: 3
Joined: 20-June 12
Member No.: 17,299



QUOTE(Darin McGrew @ Jun 21 2012, 11:17 AM) *

It looks like classroomfreebies is using multiple images manipulated with JavaScript.

The simplest answer is to use the new CSS3 features for resizing background images. But that won't work on all browsers, and it can look funny if the browser isn't shaped like what you expect (tall and narrow, vs wide and short).


I tried using the CSS contain/cover/auto settings, but then I had two versions of the image. One was behind the header and didn't change. The second was behind the content and did change. Is there a way to use CSS for background and have the image take up the entier screen, not just a section? I'm guessing it's something to do with frames?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jun 21 2012, 09:50 PM
Post #4


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



The CSS3 background-size property is the simple way to do it. If you're having difficulty getting it to work, then you may be doing something wrong, or you may be running into browser issues. Or both. It's hard for anyone to say without the URL (address) of a document that demonstrates the problem with your best effort.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
christil
post Jun 21 2012, 09:53 PM
Post #5





Group: Members
Posts: 3
Joined: 20-June 12
Member No.: 17,299



Thanks so much for the help. After you said the other site looked like they used javascript, I was able to fix mine with Java script too. I also adjusted my initial background design to push elements closer to the middle.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 09:22 AM