Jump to content
php.lv forumi

divu pozicionēšana


newnew

Recommended Posts

Man ir sekojošs kods:

<div id="header">

<div id="topnavigation"></div>

<div id="languages"></div>

<div id="logout"></div>

</div>

<div id="leftnavigation"> </div>

<div id="content"></div>

<div id="footer"></div>

 

Man nekādi neizdodas nopozicionēt ar CSS tos kā man vajag. Visu laiku viens divs lien virsū otram vai ir nepareizos augstumos.

Šodien tika sāku pētīt CSS, biju domājusi, ka ātri sanāks, bet nekā...

Man vajaga tā:

 

|

| TOPNAVIGATION (80%) LANGUAGES(10%) LOGOUT (10%) |

---------------------------------------------------------------

LEFTMENU | CONTENT

 

---------------------------------------------------------------

FOOTER

 

Pie tam

1) visi divi, kas headerī ir vienādā noteiktā augstumā, piemēram, 20px

2) topnavigation divs ir horizontāli 80%, languages - 10% un logout - 10%

3) lai leftmenu un content divi iet līdz ekrāna apakšai

4) lai footer un leftmenu+content horizontāli aizņemtu visu ekrānu

Edited by newnew
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...