Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> trzy kolumny
norbiQue
post
Post #1





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 11.05.2013

Ostrzeżenie: (0%)
-----


witam,
mam problem i nie wiem jak go rozwiązać:
pod nav ktore ma łacznie 1100px chce umiescic trzy elementy i zeby byly obok siebie i na srodku strony ich łączna szerokość też 1100px, pod spodem footer o szerkosci 100%
<nav>cos tu</nav>
<section id=lewe>menu lewe</section><main>tekst></main><section id="prawe>menu prawe</section>
<footer>stopka</footer>

jak to ustawić, bo juz roznie kombinowalem i ciagle cos gdzies mi sie rozlazi, ale i nie zybym to wstawil to w div, bo nie tak to ma byc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
r4xz
post
Post #2





Grupa: Zarejestrowani
Postów: 673
Pomógł: 106
Dołączył: 31.12.2008

Ostrzeżenie: (0%)
-----


http://jsfiddle.net/Lu8za/3/
oczywiście role="main" musisz sam wkleić w odp. miejsce

@!*!: twój przykład jest niepoprawny - główny błąd to umieszczenie całości w section
Cytat
Note: The section element is not a generic container element. When an element is needed only for styling purposes or as a convenience for scripting, authors are encouraged to use the div element instead. A general rule is that the section element is appropriate only if the element's contents would be listed explicitly in the document's outline.


---edit---
PS nie zrobisz tego bez dodatkowego diva, no ewentualnie jeśli ustawisz body na 1100px i margin auto

Ten post edytował r4xz 12.05.2013, 09:43:41
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 17.02.2026 - 10:08