How do you position text on a graphic within a header box?
-
I got my test theme/site laid out. The header currently has a H1 Header that is positioned top center.
Here is Header.php:
<html> <head> <title>U7 Tutorial theme</title> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"> </head> <body> <div id="wrapper"> <div id="header"> <h1>HEADER</h1> </div>
In Style.css:
#header { color:#00ff00; background: url("images/gbc-name-header-1v2-j.jpg") no-repeat scroll center top transparent; width: 960; height: 194; }
So the Header box is 960 x 194 pixels, I want to put the H1 header text starting at an exact position with in the 960 x 194 pixel header box.
About 150 pixels down from the top left corner (0,0), and 50 pixels in from the left.
What would the code look like?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How do you position text on a graphic within a header box?’ is closed to new replies.