css - html banner with overlaying images and texts -


im looking way dynamically create banners can placed on other pages. banner consists background image, 2 overlaying images , 2 text labels on top of background image.

is right can use absolute positioning achieve overlaying elements? how can make sure, banner in own gets placed relatively in integrated page?

i guess need able place elements absolute inside relative box. possible?

thanks markus

it possible. containing element need have position:relative , inner elements want place need have position:absolute; , position x , y this: top:10px; right:20px or bottom:10px; left:230px

so example:

css:

#banner_wrap {position:relative; width:860px; height:60px;} #inner_element {position:absolute; top:10px; left:20px; width:40px; height:40px;} 

html

<div id="banner_wrap">    <div id="inner_element"></div> </div> 

if want them dynamic can change css specific page.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -