Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-02-2013, 03:05 PM   PM User | #1
charlyanderson
Regular Coder

 
Join Date: Dec 2012
Posts: 111
Thanks: 14
Thanked 1 Time in 1 Post
charlyanderson is an unknown quantity at this point
Responsive background

Can anyone tell me the best way to make a background responsive.

I am building a word press layout and I have a div which has a logo background on it. I want the logo background to scale down and be responsive however it doesnt seem to work.

I will add a link but please be aware this is very early development on this website so still needs a lot of work.

Website Link

Any suggestions? Thanks in advance
charlyanderson is offline   Reply With Quote
Old 02-02-2013, 03:17 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,613
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
You can embed different sized background images, depending on the viewport size. That’s recommended anyway since you wouldn’t want to load a huge image on a mobile device.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 02-02-2013, 05:49 PM   PM User | #3
charlyanderson
Regular Coder

 
Join Date: Dec 2012
Posts: 111
Thanks: 14
Thanked 1 Time in 1 Post
charlyanderson is an unknown quantity at this point
Thanks Stephen I will give it a try, would still be handy to know how to make an image responsive thou in general
charlyanderson is offline   Reply With Quote
Old 02-02-2013, 07:17 PM   PM User | #4
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,613
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Most likely with background-size.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:21 AM.


Advertisement
Log in to turn off these ads.