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
centriranje floatane liste - kako?

 
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
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 05.11.2005 16:43    Post subject: centriranje floatane liste - kako? Add user to your forum ignore list Reply with quote

google je izbacio gomilu stvari koje ne trebam. alzo, lista se sastoji od itema koji su floatani ulijevo, ali ja bi kompletnu listu centrirala, e sad znam da ne moze i float: left; i text-align: center rezultirat zeljenim, ali zbilja mi treba bas da tako izgleda - inline i centrirano. jednostavnije bi bilo samo izbaciti listu i a-evi ce bit centrirani, ali ja sam mazohist.

Code:
#izbornik {
   margin: -20px auto 0 auto;
   text-align: center;
}
#izbornik li {list-style: none; display: inline;}
#izbornik li a {
   display: block;
   float: left;
   margin: 5px;
}

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 05.11.2005 16:45    Post subject: Add user to your forum ignore list Reply with quote

ovak napamet... zadaj sirinu linkovima ili itemima :)

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 05.11.2005 16:49    Post subject: Add user to your forum ignore list Reply with quote

probala oboje, nista.

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 05.11.2005 17:04    Post subject: Add user to your forum ignore list Reply with quote

a sirinu cijeloj listi? imas to negdje na netu?

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 05.11.2005 17:10    Post subject: Add user to your forum ignore list Reply with quote

nemam na netu, no stvar je u tome da nemam pojma kolika ce lista biti, jer ce neki elementi prijeci u novi red, a za njih takodjer zelim da budu centrirani.

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 05.11.2005 17:35    Post subject: Add user to your forum ignore list Reply with quote

Floatanje je dosta ograničeno - ili lijevo ili desno, ne postoji centar. Ako trebaš centrirati grid itema koji floataju a svaki redak je iste širine možeš to postići marginanjem parent elementa. Ako retci nisu iste širine onda nemaš šanse da to bude poravnano po sredini a ne po lijevom/desnom rubu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 05.11.2005 17:39    Post subject: Add user to your forum ignore list Reply with quote

hmm well sad kad znam da je nemoguce, bez liste it is Confused

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
pepa.UP



Joined: 10 Sep 2003
Posts: 15
Location: zagreb

PostPosted: 05.11.2005 19:30    Post subject: Add user to your forum ignore list Reply with quote

nel`chee wrote:
hmm well sad kad znam da je nemoguce, bez liste it is :?
why?:)

floatanje ti tu ni netreba.. itemi liste se ispisuju jedan ispod drugog jer su block elementi.. dakle samo im maknes tu definiciju (display: inline;) i dalje baratas kao sa textom..
Code:
#izbornik {
   margin: 0;
   padding: 0;   /* maknes defaultni padding s liste */
   text-align: center;
}
#izbornik li {list-style: none; display: inline;}
#izbornik li a {
   margin: 5px;
}

_________________
unpljugged.com
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 05.11.2005 19:43    Post subject: Add user to your forum ignore list Reply with quote

Ja recimo ne podnosim da linkovi u navigaciji nisu block i da nemaju barem malo paddinga i margina. Linkovi koje je lako 'pogoditi' mišem su važan dio usability-a sajta. Ali block se ipak mora floatati, tako da u ovom slučaju ne ide tako. Pepa je u pravu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

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

mne ne... mora biti block jer naravno ne radi se o obicnim tekstualnim linkovima, vec moram replace-at pozadinom, a ako nije block ne mogu odrediti visinu i sirinu.
tnx neway Smile

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

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

ma... stavi u flesu i bok :)

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 06.11.2005 16:00    Post subject: Add user to your forum ignore list Reply with quote

...ili nemoj centrirat Razz

tko je još vidio centriranu navigaciju??
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 06.11.2005 17:54    Post subject: Add user to your forum ignore list Reply with quote

nije bila moja ideja Confused

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
ivan2704



Joined: 05 May 2005
Posts: 13

PostPosted: 06.11.2005 18:16    Post subject: Add user to your forum ignore list Reply with quote

Možda ovo pomogne.
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 06.11.2005 19:34    Post subject: Add user to your forum ignore list Reply with quote

ma vidi ti to! Shocked
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

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

hm... ja ovo koristim i radi mi ....

Code:
#navigacija ul {
   margin: 0;
   padding:0;
   list-style-type:none;
   text-align:center;
}

#navigacija ul li {
   display: inline;
}

#navigacija ul li a {
   text-decoration: none;
   padding: .2em 1em;
   color: #fff;
   background-color: #036;
}

#navigacija ul li a:hover {
   color: #fff;
   background-color: #369;
}
Code:
<div id="navigacija">
   <ul>
      <li><a href="/index.php">Naslovna</a></li>
      <li><a href="#">Članci</a></li>
      <li><a href="#">Recenzije</a></li>
      <li><a href="#">Programi</a></li>
      <li><a href="#">Galerija</a></li>
      <li><a href="#">Forum</a></li>
   </ul>
</div>


c&p is wip-a...
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 06.11.2005 22:34    Post subject: Add user to your forum ignore list Reply with quote

to nije floating... to je ono o čemu je Pepa govorio, odnosno inline tehnika

ivane, postao si vrijedan resurs Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 06.11.2005 22:51    Post subject: Add user to your forum ignore list Reply with quote

Ne kužim što točno želite postići, ja sa ovim gore u standard compliant browserima imam padding i mogu kliknuti na čitav block...
Back to top
View user's profile Send private message Visit poster's website
ivan2704



Joined: 05 May 2005
Posts: 13

PostPosted: 06.11.2005 23:02    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
ivane, postao si vrijedan resurs Smile


Da vrijedan, stranica je zakon, a lik je car TZAR!!1.
Evo još jedan njegov primjer, ovaj put sa centriranom i ne-float listom.
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 06.11.2005 23:29    Post subject: Add user to your forum ignore list Reply with quote

Jedini problem je naravno DEL element ... smrt za semantiku Sad nelči, trebaš odlučit je li ti IE toliko važan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 06.11.2005 23:33    Post subject: Add user to your forum ignore list Reply with quote

vrlo vrlo vazan jerbo nije za mene Sad

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
ivan2704



Joined: 05 May 2005
Posts: 13

PostPosted: 06.11.2005 23:59    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
Jedini problem je naravno DEL element ... smrt za semantiku Sad nelči, trebaš odlučit je li ti IE toliko važan


Da, nisan vidija DEL, ali u drugom primjeru nema DEL elementa.
Back to top
View user's profile Send private message
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

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

@gog - u pravu si, block nije uvijek potreban
Back to top
View user's profile Send private message Send e-mail 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