Is my positioning desire a really hard problem? I didn’t think it would be so hard to do this nor to find out how to do this. I find wordpress to be hard.
How can I move my navigation bar flush to the bottom of my 960×250 header image.
So you applied relative position to header image. The thing about relative positioning is that it doesn’t take the element out from the document flow, so it is still possessing its own spot creating big white space there.
Review on the usage of CSS positioning: relative, absolute.
Also, your image, in this particular case, should be png transparent.
I have seen sites with title/tagline as text on TOP of their header image, aren’t there tons of WP sites doing this too? If anyone has seen a good thread about how to do that or tut somewhere, please let me know.
The content is now too low, exactly where it was while I was making all the moves using CSS alone, which folks here told me I could not do.
Do I now need to also position the content using CSS? Using which styles, or do I need to make my own for this?
I’m awkward w/ coding, obviously.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
I have seen sites with title/tagline as text on TOP of their header image, aren’t there tons of WP sites doing this too?
WordPress does not actually limit the HTML and CSS, so any layout is possible.
Your site is not available, but from WPyogi’s and Paulwpxp’s responses, it sounds like you need to re-think your HTML structure instead of forcing elements into position. Positioning should come naturally in a document. Forcing positions is likely to cause layout issues in other platforms, browsers and browser versions.
Thanks Andrew. Site has been accessible since 13 hrs ago.
How can you do that in wp where everything is set up using php…? I wanted to use wp to avoid coding, which I’m awkward (bad) at, then can’t get past this issue. To my knowledge WP and its twentytwelve theme is doing the only “structure” set up to this site, no?
I’ve touched no HTML, only CSS, then moderators here told me I need to edit header PHP, which puts me exactly where I was using only CSS for position changes.
Yuck. How can I move my content up, is doing so really hard?
Thanks again.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Your spacing is caused by the elements you forced up using CSS positioning; because those elements are not within the flow of the document, the document does not automatically reduce spacing as it normally would.
I would revert all your negative positioning and start from the beginning.
I reverted to no CSS positioning, and the content area stays at the same spot on the page. What I’d like is:
– How can I have header image flush to top/browser window, with
– Site title/tagline on TOP of that,
– Nav bar flush to bottom of header image, and
– Content starting in a normal spot below that?
I’m back at square one. The changes I want are obviously minor, but how do get them done seems major given my experience so far. Thanks so much for your help, Andrew. Maybe you’ll just send me instructions and I can stop jury-rigging any code!
š
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Like this http://awesomescreenshot.com/0441aseic9 ?
Can you illustrate what you want?
That’s exactly it. In case I change the header image ever, I’d prefer that the title+tagline can appear as text on top of the header image.
Is that do-able, easily?
Thanks Andrew
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Sure, do you have header.php in your Child Theme?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Try replacing your Child Theme’s header.php contents with this code http://pastebin.com/VDHzit04
Then in your Child Theme style.css file add:
#masthead {
width: 1040px;
margin: 0 auto;
padding-bottom: 0;
}
#masthead hgroup {
position: absolute;
}
#page {
margin-top: 0;
}
Will try, thanks Andrew. Is there some place you know of to compare code so I can know/learn what you’re changing re the php?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support