Make twentyeleven title image and background responsive
-
Hey guys,
I have set my logo to appear where the website title normally does in my theme. I am using Twentyeleven. I want the logo to automatically shrink with the screen but even though I have added some
size:cover
code it doesn’t work.Below is my custom CSS code for placing the logo:
#site-title { text-indent:-9999px; } #site-description { text-indent:-9999px; height:1px; } #site-title a { background:url('http://www.whereskarlo.com/wp-content/uploads/2012/09/logo.png') no-repeat; -webkit-background-size:cover; -moz-background-size:cover; -o-background-size:cover; background-size:cover; display:block; height:146px; width:473px; }
I tried all of those but they don’t make my logo automatically resize.
I am also trying to make the background stretch to the screen. The background image is 1024px wide but I can’t figure out how to make it happen.
Any help is appreciated as always, thanks 🙂
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Make twentyeleven title image and background responsive’ is closed to new replies.