Pentru descarcare , inregistreaza-te ! Au fost introduse noi Hack-uri 2015 !





Centrare pagina cu ajutorul CSS si HTML

View previous topic View next topic Go down

Centrare pagina cu ajutorul CSS si HTML

Post by Sfinx on Fri Dec 07, 2012 8:40 am

Salut tuturor , astazi am sa va invat cum sa asezati o pagina !

1.Pagina centrata cu pozitionare absoluta

Code:
<html>
<head>
<title>Centrare pagina web</title>
<style type="text/css">
body {
margin:0px;
padding:0px;}

#pagina {
position:absolute;
width:1000px;
min-height:950px;
margin-left:-500px;
left:50%;
background-color:#7AB8E9;}

/>
</style>
</head>

<body>
<div id="pagina">
</div>
</body>

</html>

Codul de mai sus va rezulta intr-o pagina centrata, care arata asa intr-o rezolutie de 1440×900.

[You must be registered and logged in to see this image.]

Cod, stil special pt IE, (Internet Explorer)

Deci, IE multe ori nu interpreteaza bine anumite stiluri, pozitionare, centrare etc.

Iata un exemplu (este de fapt un if statement).

Code:
<!–[if IE 6]>
<style type="text/css">
body { position:relative;}
</style>
<![endif]–>

Cam atat pentru astazi , daca aveti ceva nelamuriri dati un reply !


Code name: Mozilla
App name: Opera
Version: 9.80 (Windows NT 5.1)
Language: ro
Plateform: [You must be registered and logged in to see this image.] windows
User Agent: Opera/9.80 (Windows NT 5.1) Presto/2.12.388 Version/12.14


[You must be registered and logged in to see this link.]

Sign by Danasoft - [You must be registered and logged in to see this link.]

avatar
Sfinx
Administrator
Administrator

Mesaje Mesaje : 1440
Data nasterii Data nasterii : 25/02/1995
Localizare Localizare : Timisoara
Server Server : Bine

http://metin2hacks.forumh.net/

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum