Problems trying to overlap elements
-
I’m new to WordPress but know the basics of html and CSS. I’m trying to get the blog content element to overlap my header image. Similar to what BBC Sport does, as demonstrated by the link below:
https://www.bbc.co.uk/sport/0/formula1/19400192
Notice how the white part of the article titled “Jaime Alguersuari column: Belgian Grand Prix preview” overlaps the image of the F1 car?This is what I’m trying to replicate, but keep the sidebar remain at its default position so you should end up with something like the example I’ve mocked up here
I’ve tried editing the CSS stylesheet to
#primary { float: left; margin: -50px -26.4% 0 22%; width: 100%; background:#fff; } #content { margin: -50px 34% 0 7.6%; width: 58.4%; background:#fff; } #secondary { float: left; margin-right: 7.6%; width: 18.8%; }
but while this does move the content to the position I want it, it doesn’t overlap my logo. I’ve tried playing around with z-index but the result was pretty much no different. This is what my blog looks like at the moment:
https://rdb.x10.mx/blog/
The sidebar is also moving with the blog articles, so info on how to put that back down the page would also be useful!I know its probably something simple that I’m missing…
Thanks for any help you can give.
- The topic ‘Problems trying to overlap elements’ is closed to new replies.