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
Dva DIV-a u jednu liniju

 
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
TREECKO



Joined: 22 Dec 2008
Posts: 72

PostPosted: 31.12.2008 21:46    Post subject: Dva DIV-a u jednu liniju Add user to your forum ignore list Reply with quote

Jako sam puno gledao na Internetu za ovaj problem ali nisam nasao nista korisno.
http://www.google.com/search?hl=en&q=two+divs+in+one+line&btnG=Google+Search&aq=f&oq=

Htio bih pozicionirati 2 div-a u jednu liniju. Da li je to izvdivo i kako?
Hvala svima puno!
Back to top
View user's profile Send private message
maniche



Joined: 17 Oct 2006
Posts: 52

PostPosted: 31.12.2008 21:58    Post subject: Add user to your forum ignore list Reply with quote

imaš npr 5 divova i svaki floataš u desno ili u lijevo.stajat će jedan pored drugog.osim ako ti je container fixne veličine,onda idu u drugi red kad napune širinu...
nisam te dobro skužio ali valjd je to to
Back to top
View user's profile Send private message
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 31.12.2008 22:03    Post subject: Add user to your forum ignore list Reply with quote

lol, dobar si 'two divs in one line' Very Happy

evo, pročitaj ovo kada stigneš, bit će ti puno jasnije stvari
http://www.w3.org/TR/CSS2/visuren.html

_________________
mile.is
Back to top
View user's profile Send private message Visit poster's website
TREECKO



Joined: 22 Dec 2008
Posts: 72

PostPosted: 01.01.2009 05:41    Post subject: Add user to your forum ignore list Reply with quote

mile wrote:
lol, dobar si 'two divs in one line' Very Happy


XD! Sta fali? Cool
http://www.google.co.uk/search?q=two+divs+in+one+row&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enHR308 Laughing

Hvala budem pogledao... Snasao sam se s tabilicom pored diva, to mi je prihvatio.
Back to top
View user's profile Send private message
TYPE01



Joined: 12 Sep 2003
Posts: 1158

PostPosted: 01.01.2009 13:09    Post subject: Add user to your forum ignore list Reply with quote

TREECKO wrote:
mile wrote:
lol, dobar si 'two divs in one line' Very Happy


XD! Sta fali? Cool
http://www.google.co.uk/search?q=two+divs+in+one+row&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enHR308 Laughing

Hvala budem pogledao... Snasao sam se s tabilicom pored diva, to mi je prihvatio.


Pa zar si odustao već nakon prvog pokušaja? Smile Sada lijepo obriši tu tablicu i fino pored prvog DIV-a floatni drugi DIV Smile Pa ovisno o kontekstu sve lijepo clearaj (ako za tim ima potrebe). Smile
Back to top
View user's profile Send private message
Limeni



Joined: 13 Nov 2007
Posts: 109

PostPosted: 01.01.2009 22:59    Post subject: ... Add user to your forum ignore list Reply with quote

XHTML:

<div id="prvi_div"><p>sadrzaj prvog diva</p></div>
<div id="drugi_div"><p>sadrzaj drugog diva</p></div>

CSS:

#prvi_div {float: left;}
#drugi_div {float: left;}

Jel ovo zelis napravit? Ma smao ih floatj u lijevo i to je sve, mozes ih jos sve zamotat u jedan div. Ovo ti je prejednostavno nemas potrebe koristit tablice.
Back to top
View user's profile Send private message
TREECKO



Joined: 22 Dec 2008
Posts: 72

PostPosted: 02.01.2009 00:11    Post subject: Add user to your forum ignore list Reply with quote

Uspio sam. Hvala svima. Dancing
Back to top
View user's profile Send private message
TREECKO



Joined: 22 Dec 2008
Posts: 72

PostPosted: 11.01.2009 01:49    Post subject: Add user to your forum ignore list Reply with quote

Jos jedno pitanje da ne otvaram novi topic...
Kako da zaljepim div za rub ekrana? ne radi mi ni margin ni padding, uvijek je odvojen od ruba par pixela...
Back to top
View user's profile Send private message
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 11.01.2009 09:37    Post subject: Add user to your forum ignore list Reply with quote

TREECKO wrote:
Jos jedno pitanje da ne otvaram novi topic...
Kako da zaljepim div za rub ekrana? ne radi mi ni margin ni padding, uvijek je odvojen od ruba par pixela...


give. us. your. code Smile

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



Joined: 12 Sep 2003
Posts: 1158

PostPosted: 11.01.2009 16:14    Post subject: Add user to your forum ignore list Reply with quote

TREECKO wrote:
Jos jedno pitanje da ne otvaram novi topic...
Kako da zaljepim div za rub ekrana? ne radi mi ni margin ni padding, uvijek je odvojen od ruba par pixela...


Pa pokušaj za početak sa globalnim CSS resetom:

Code:
* { margin: 0; padding: 0; }


ili još bolje: http://meyerweb.com/eric/thoughts/2008/01/15/resetting-again/
Back to top
View user's profile Send private message
TREECKO



Joined: 22 Dec 2008
Posts: 72

PostPosted: 11.01.2009 17:06    Post subject: Add user to your forum ignore list Reply with quote

Pa pokusao sam i neide... Ono ti ja nis ne kuzim Rolling Eyes
Back to top
View user's profile Send private message
niksy



Joined: 29 Sep 2003
Posts: 727

PostPosted: 11.01.2009 19:44    Post subject: Add user to your forum ignore list Reply with quote

Mozda ti se samo cini.
Mozda je negdje kasnije u CSS-u specificirano da se odmakne od ruba (margine tog elementa, padding roditelja, ...)
Probaj i
Code:
neki_element { position:absolute; top:0; left:0; }
Back to top
View user's profile Send private message Visit poster's website Twitter profile
dr_Hate



Joined: 28 Aug 2007
Posts: 168
Location: Rijeka

PostPosted: 11.01.2009 20:20    Post subject: Add user to your forum ignore list Reply with quote

Code:

*, html, body{margin:0;}

_________________
imam domenu |stajduhar.org|
Back to top
View user's profile Send private message Visit poster's website
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