Problema de pozitionare css
Last Updated: Jan 29 2013 22:41, Started by
razvanica96
, Jan 29 2013 22:41
·
0

#1
Posted 29 January 2013 - 22:41

Buna seara / ziua.
Am inceput sa fac un site despre cum sa te protejezi pe internet, numai ca am intampinat ceva problema la pozitionarea elementelor in css. Cand le-am pozitionat la mine aratau destul de okay adica nu erau imprastiate pe toata pagina si alea alea, dar insa cand intra un alt utilizator sunt imprastiate Jos mai apare si o bara de scroll si nu pot scapa de ea... #header{ position: fixed; position: absolute; left: 0px; top: 0px; margin-top: 0px; z-index: 1; } #IP{ position: relative; left: 300px; top: 600px; } #pixel{ background:url ('images/pixel.png'); position: fixed; position: absolute; left: 0px; top: 120px; z-index: 2; } #down{ position: absolute; bottom: 0px; left: 0px; z-index: 4; } #pixel2{ position: absolute; left: 0px; top: 751px; z-index: 3; }Si codurile din fisieru .php <html> <head> <link href="style.css" rel="stylesheet" type="text/css"> <title>WebScript</title> </head> <body bgcolor="c4cbce"> <img src="images/pixel.png" id="pixel" /> <img src="images/header.png" id="header" /> <img src="images/down.png" id="down" /> <img src="images/pixel.png" id="pixel2" /> <p id="IP"> <?php $ip = $_SERVER["REMOTE_ADDR"]; echo "Ip-ul tau este $ip"; ?> </p> </body> </html>Ceva solutii? |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users