alexer13 Posted August 5, 2012 Report Share Posted August 5, 2012 As vrea sa stiu care sunt setarile pentru ca websiteul sa fie centrat indiferent de rezolutia utilizatorului. Quote Link to comment Share on other sites More sharing options...
GraphLog Posted August 5, 2012 Report Share Posted August 5, 2012 Foloseste un generator grid-based , nu te complica incercand sa o faci de la 0.Eu recomand Responsify.it - A responsive template generator Quote Link to comment Share on other sites More sharing options...
Brokerjoker Posted August 5, 2012 Report Share Posted August 5, 2012 body{width:80%;margin:0 auto;}Ai incercat asta? Quote Link to comment Share on other sites More sharing options...
Pacalici Posted August 6, 2012 Report Share Posted August 6, 2012 Eu unu recomand ca in locul la body sa folosesti un div separat. Dar metoda lui broker e perfecta. Quote Link to comment Share on other sites More sharing options...
GarryOne Posted August 7, 2012 Report Share Posted August 7, 2012 faci un div cu clasa container caruia ii atribui urmatoarele: width: 960px;margin: 0 auto; Quote Link to comment Share on other sites More sharing options...
florin_darck Posted August 7, 2012 Report Share Posted August 7, 2012 faci un div cu clasa container caruia ii atribui urmatoarele: width: 960px;margin: 0 auto;Exact ! Quote Link to comment Share on other sites More sharing options...
BLKoldSUN Posted September 7, 2012 Report Share Posted September 7, 2012 In HTML:<html><head></head><body><div id="suport"><p>continutul principal aici</p></div></body></html>In CSS:#suport { width:960px; padding:0; margin:0 auto; } Quote Link to comment Share on other sites More sharing options...
gorski Posted September 7, 2012 Report Share Posted September 7, 2012 Iti recomand sa faci un div separat, care sa cuprinda toata pagina. Un exemplu: <div id="wrapper"><!-- Elementele paginii --></div>Si partea de CSS:#wrapper { width: 960px; margin-left: auto; margin-right: auto; }Latimea paginii (width) o setezi tu cat vrei sa fie. Quote Link to comment Share on other sites More sharing options...
robertutzu Posted September 7, 2012 Report Share Posted September 7, 2012 recomand em nu px daca ai o rezolutie de sub 960 px ce faci atunci? vrei sa se vada tot ok pe orice rezolutie foloseste em sau % Quote Link to comment Share on other sites More sharing options...
gorski Posted September 7, 2012 Report Share Posted September 7, 2012 Daca ai un vizitator cu o rezolutie mai mica de 960px, atunci foloseste media queries. Aici ai un tutorial despre cum sa folosesti media queries : Responsive Design in 3 Steps Quote Link to comment Share on other sites More sharing options...