Pozitionare Div-uri
Last Updated: Apr 19 2015 16:01, Started by
green_sky8
, Apr 11 2015 12:44
·
0
#1
Posted 11 April 2015 - 12:44
Incerc sa creez un header fixed si nu inteleg de ce nu se aliniaza cum trebuie. Unde gresesc?
<!DOCTYPE> <html> <head> <style> div {border:1px solid} #antet-cont{border:none; width:100%; position:fixed; top:0px; } #antet{ width:80%; height:250px; background:yellow; margin:auto} #continut {height:200%; width:80%; margin-left:auto; margin-right:auto; margin-top:250px} #subsol {width:80%; height:100px; background:yellow; bottom:0px; margin-left:auto; margin-right:auto} </style> </head> <body> <div id="antet-cont"> <div id="antet"> Antet </div> </div> <div id="continut"> Continut </div> <div id="subsol"> Subsol </div> </body> </html> Attached FilesEdited by OriginalCopy, 11 April 2015 - 12:47. |
#3
Posted 11 April 2015 - 13:58
#5
Posted 11 April 2015 - 14:20
#6
Posted 19 April 2015 - 16:01
Ia de aici!
<!DOCTYPE> <html> <head> <style> div {border:1px solid} #antet-cont { border: none; width: 100%; position: fixed; top: 0px; left: 0; right: 0; } .antet { width: 79%; height: 250px; background: yellow; margin: auto; } #continut { height: 200%; margin-top: 250px; } #subsol { height: 100px; background: yellow; } #container { border: 0; width: 80%; margin: 0 auto; } .tabel{ border:0; } </style> </head> <body> <div id="container"> <div id="antet-cont"> <div class="antet"> Antet </div> </div> <div id="continut"> Continut</div> <div id="subsol"> Subsol </div> </div> </body> </html> |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users