Browser-Width Banner (Page Heading)
-
Okay, I have what is probably a simple problem to most of you but, being relatively new to the “web environment” (I’m an IT guy), I just can’t figure this one out.
We’re trying to display browser-width (responsive) banners across our pages showing the title of the page. Let’s say a #1d5b98 background color, 85px wide and having the text (H1) centered on the page.
Right now, here’s what I have.
DIV
<div id=”WideBar”>
<h1 style=”width: 100%; height: 86px; background-color: #1d5b98; color: #ffffff; text-align: center; valign: middle;”>
WHAT IS CELLULAR DAS?</h1>
</div>CSS
/* Draw Browser-Width Title Bar */
#WideBar{
position: absolute;
left: -50%;
right: -50%;
width: 200%;
margin: 0;
height: auto;
}Just isn’t “centering” the text, is not at all responsive and seems to be “over-ridden” by the theme.
As I said, probably a simple fix for you guys but a real stumper to me. Any help would be greatly appreciated.
The page I need help with: [log in to see the link]
- The topic ‘Browser-Width Banner (Page Heading)’ is closed to new replies.