html - Can't move elements in css divs -
for reason have parent div called banner contains number of child divs, in css styles sheet can't seem move elements "craft412" logo image desired position within banner. i've tried using left/right/top/bottom move these elements nothing seems budge them. if me here i'd appreciative it.
here html page on site
<!--top banner section--> <div id="banner"> <div id="logo"> <img src="images/craft412 - logo.png" width="500" height="281" alt="craft412"> </div> <div id="ip_box"></div> <div id="ip_text"> <p>server ip<p/> <p>craft412.serveminecraft.net<p/> </div> <div id="teamspeak_box"></div> <div id="teamspeak_box_2"></div> <div id="teamspeak_text"> <p>teamspeak<p/> </div> <div id="teamspeak_image"> <a href="ts3server://craft412.serveminecraft.net:9987"> <img src="images/craft412 - box - teamspeak.png" alt="teamspeak"> </a> </div> </div>
also here css same divs
/*css pages*/ /*body/wrapper section*/ body { background:#eeeeee; background-repeat: no-repeat; background-attachment: fixed; } #wrapper { width: 1750px; margin: 0 auto; background-color: white; border-radius: 5px; box-shadow: 0px 1.5px 2px 0px; border: 1.5px solid #e0e0e0; color: #e0e0e0; } /*top banner section*/ #banner { height:100px; } #logo {} #ip_box { width:200px; height:43px; background:#212121; border-radius: 5px; box-shadow: 1px 1px 5px;} #ip_text { color: white; font-size: 15px; } #teamspeak_box { width:159px; height:43px; background:#212121; border-radius: 5px; box-shadow: 1px 1px 5px; } #teamspeak_box_2 { width:43px; height:43px; background:#313131; border-radius: 5px 0px 0px 5px; } #teamspeak_text { color: white; } #teamspeak_image {}
give parent div property :
position:relative;
also give property child div:
position:absolute;
now can change places of child div inside "banner" div. using top
, bottom
, right
, left
Comments
Post a Comment