Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
CSS: auto expanding container

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
F@NTOM



Joined: 11 Sep 2003
Posts: 592
Location: Dubrovnik

PostPosted: 28.01.2005 21:51    Post subject: CSS: auto expanding container Add user to your forum ignore list Reply with quote

Imam problem sa conatainer div-om na stranici. Unutar njega imam jos dva div-a (lijevi i desni content div) koji su pozicionirani lijevo i desno. E sad, meni je potrebno da kako popunjam jedan od ovih contenta tako da se i container siri i prilagođava novoj visini.
Moze pomoc. thx Smile

Ovo je html:
Code:
<div id="container">
<div id="lijevi_content"></div>
<div id="desni _content"></div>
</div>


A ovo je css:
Code:
#container {
position:relative;
width:532px;
height:auto;
margin-top:auto;
margin-left:auto;
margin-right:auto;
background-color:#393939;
border-style:solid;
border-width:5px;
border-color:#ffffff;
}
#lijevi_content {
position:absolute;
width:380px;
height:auto;
top:186px;
left:1px;
background-color:#FFFFFF;
}
#desni_content {
position:absolute;
top:186px;
right:1px;
width:149px;
height:auto;
background-color:#F8F8F8;
border-top:0;
border-bottom:0;
border-right:0;
border-left:1px;
border-style:solid;
border-color:#DFDFDF;
}

_________________
These pretzels are making me thirsty!
Back to top
View user's profile Send private message
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 29.01.2005 13:56    Post subject: Add user to your forum ignore list Reply with quote

Code:
#container { float: left; }
#lijevi_content { float: left; }
#desni_content { float: right; }

bez apsolutnog pozicioniranja

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
F@NTOM



Joined: 11 Sep 2003
Posts: 592
Location: Dubrovnik

PostPosted: 30.01.2005 01:05    Post subject: Add user to your forum ignore list Reply with quote

skuzio sam nakon par sati kombiniranja Smile ...thx na odgovoru ipak.
Nego kad stavim #container { float:left; } cijalokupna stranica mi ode ulijevo, a meni treba da bude centriirana za sada sam to ispravio da sam stavio margin-left:25% ali postoji li mozda drukciji nacain da sve centriram?

_________________
These pretzels are making me thirsty!
Back to top
View user's profile Send private message
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 30.01.2005 01:31    Post subject: Add user to your forum ignore list Reply with quote

Stavi { margin-left:auto;margin-right:auto; } , bez floata za container. Nakon toga ćeš vjerojatno trebati nekakav clear, so check this out.

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
maratz
mi3.crew


Joined: 24 Nov 2003
Posts: 1207
Location: ZAG

PostPosted: 30.01.2005 11:25    Post subject: Add user to your forum ignore list Reply with quote

red wrote:
Stavi { margin-left:auto;margin-right:auto; } , bez floata za container. Nakon toga ćeš vjerojatno trebati nekakav clear, so check this out.

... i ovo je super, samo što neće raditi u IE, bez junk kôda. -- 'krumpiiiiiraaaaaa!!!1'

_________________
STOP HITTING YOURSELF! | NETIQUETTE | TYPETESTER | Hypertext rulez™ | CREATIVE NIGHTS | ACCOMMODATIONS
Back to top
View user's profile Send private message Visit poster's website Twitter profile
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 30.01.2005 12:01    Post subject: Add user to your forum ignore list Reply with quote

Da, linkao sam namjerno taj članak, gdje je opisan i 'the old-fashioned way', pa nek čovjek bira.

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group