Replacement Confusion
-
In a CSS style sheet I’m tweaking I’m replacing the blog name and the blog description with an image (as in: body{background: url(‘images/graphic.png’) – etc.
In the style.php file I’ve added the {display: none} instructions to the original #header and #description sections, so that the blog name and description don’t echo on the screen over the background image.
My question is how much of the original CSS instructions do I have to keep, and what can I take out?
Can I delete all those width, margin, padding, color, font-size, etc. instructions now that I’m not displaying them, and just use #header h1 {display: none}, etc?
Here’s the way the code looks now, with {display:none} added:
#header {width: 45%; float: left; background: transparent; margin: 0 auto; padding: 0;}
#header h1 {display: none; background: transparent; color: #999; font-size: 2.3em; letter-spacing: 2.3px; margin: 0px; text-align: right; padding: 10px 0px ;}
and:
#description {display: none; background: transparent; color: #FFADB1; padding-right: 20px; padding-top:10px; font-size: 1.5em; font-weight: bold; margin-left: 0px ; text-align: left;}
- The topic ‘Replacement Confusion’ is closed to new replies.