Hi sharkbait,
I’ve not got very far with any of the css frameworks, simply because as an independent developer I’ve always found it easier to just construct my own grids tailored to each site.
For the top ad, I would be tempted to have the content in a div (width:100%) placed at the end of your html, but positioned at the top using position: absolute. Centre the ad banner within that div. Just remember to add padding or margin to your header to allow for where the ad will appear. The reason I would do this is to prevent any SEO or semantic implications. Content first!
For the right hand ad, that could be inserted effectively as a narrow second ’column’ floated within the centred container div, with your site content within the first column. That way if there is no ad, just make sure there is no second column displayed and it should hopefully line up in the centre.
Again, I’m not sure about best practice for this scenario but that is probably how I would go about it. Let me know if it didn’t make sense!
-
☆ A M B ☆
- 3,141 Posts
I would have personally set the arrow to be the background of the divs (which would have a set height in my case too) and make the whole div clickable with an onclick, as well as the heading and text would be an anchor just in case.
Probably aint good web standards but it’s quick and it works.
hey, thank you both!
but if i understand it right, both approaches would only work with a fixed height of the containers. i’ll look into display: table-cell, could be working - will report back