Hi all,
My sitesite has a header with a line to the right of it.
I can see no code in my CSS file to make changes.
Can anyone suggest the code I need to make changes to the code. Basically, I want to recreate a similar style for of 'H tags' - I also can't work out how to center the background image vertically inline with the tag.
Many thanks,
Mike
Looks centered to me
The target css seems to be
.symple-heading { background: url("images/heading-bg.png") repeat-x scroll center center rgba(0, 0, 0, 0); clear: left; font-size: 1em; font-weight: 900; margin: 30px 0; text-align: center; } .symple-heading.text-align-left span { padding-left: 0 !important; } .symple-heading span { background: none repeat scroll 0 0 #FFFFFF; padding: 0 40px; }
Frankly, this page does not look like the work of a professional web developer.
cheers,
gary
Thanks
Hi Gary,
Thanks for the comments - my problem is getting the code to work with my current 'H' tags font-sizes.
A little surprised at your 'does not look like the work of a professional web developer' - this is a site based on a Wordpress theme, produced by a Wordpress developer.
Thanks anyway.
Mike
Show me
an example of the heading element you want your bg image to work with.
Regarding WP themes and plugins: Very few are written by knowledgeable html/css developers. Most are written by "web designers" with little understanding of document structure or the presentation cascade.
It is my belief that WP dropped their original strict structuring in order to make entry easier, which has resulted in a serious lowering of code quality. Unless you're satisfied with out-of-the-box themes, etc., maintenance, including modifications are expensive. How much time have you needlessly spent on this? Do you work cheap?
cheers,
gary
Follow-up
Here are sane markup and css.
<!DOCTYPE HTML> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <title>Test page</title> <style type="text/css"> /*<![CDATA[*/ body { font: normal 100%/1.25% sans-serif; } h1, h2, h3, h4, h5, h6 { background: white url(images/hblackline.gif) repeat-x center; line-height: 125%; } h1 span, h2 span, h3 span, h4 span, h5 span, h6 span { background-color: white; padding-right: 1em; } /*]]>*/ </style> </head> <body> <h1><span>h1 heading</span></h1> <h2><span>h2 heading</span></h2> <h3><span>h3 heading</span></h3> <h4><span>h4 heading</span></h4> <h5><span>h5 heading</span></h5> <h6><span>h6 heading</span></h6> </body> </html>
cheers,
gary
Attachment | Size |
---|---|
hblackline.gif | 91 bytes |