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
background-position

 
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
:cosmos:



Joined: 12 Sep 2003
Posts: 2098
Location: México

PostPosted: 16.02.2006 12:19    Post subject: background-position Add user to your forum ignore list Reply with quote

e ovako,
radi, ali bi htio da mi validator to ne daje kao error u cssu.
pa me zanima kako vi to rjesavate?

znaci imam background

Code:

{
    background-position: right 12px;
    background-image: url(images/ppPretrazi_crta.gif);
    background-repeat: no-repeat;
}


znaci, meni u ovom slucaju treba bg spusten 12pxa, znaci ne mogu roknut bottom.
eto,, hvala
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
F@NTOM



Joined: 11 Sep 2003
Posts: 592
Location: Dubrovnik

PostPosted: 16.02.2006 13:10    Post subject: Add user to your forum ignore list Reply with quote

http://www.w3schools.com/css/pr_background-position.asp

Stavi samo sa px vrijednostima, bez toga rigth i treba ti validirat onda.

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



Joined: 20 Apr 2005
Posts: 354
Location: Zagreb

PostPosted: 16.02.2006 13:17    Post subject: Add user to your forum ignore list Reply with quote

Code:

background: url(images/ppPretrazi_crta.gif) no-repeat;
background-position: 0 12px 0 0;


?

_________________
::: Fortis est, qui se vincit ! ::::
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
:cosmos:



Joined: 12 Sep 2003
Posts: 2098
Location: México

PostPosted: 16.02.2006 13:53    Post subject: Add user to your forum ignore list Reply with quote

F@NTOM wrote:
Stavi samo sa px vrijednostima, bez toga rigth i treba ti validirat onda.


to bi htio izbjeci jer necu svaki put znati kolka je sirina diva, pa u slucaju povecanja sirenja on ce ostati na istom mjesto, u ovom slucaju right, on je uvijek right uz moguci padding sa desne strane.

Code:
background: url(images/ppPretrazi_crta.gif) no-repeat;
background-position: 0 12px 0 0;


ovo je ok, ali kada je nesto lijevo, sto kada je desno? opet bi trebao dati neku vrijednost.
nigdje nisam nasao, kako kombinirati rijeci i parametre kao sto je problem kod mene.
da je slika na 0 visini, to je ok, ostane samo left/rightr, ali kada imas spusteno za neku vrijednost je problem.
probat cu malo guglat,, imam 3000linije koda sve prolazi samo me taj position zeza, a ima ga dosta.

hvala
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
retro_one



Joined: 16 Sep 2003
Posts: 880
Location: DUBRAVA.

PostPosted: 16.02.2006 14:36    Post subject: Add user to your forum ignore list Reply with quote

samo jedno pitanje....zasto jednostavno ne dodas 12 transparentnih pixela na sliku Question

_________________
Just your average eccentric programmer.
Back to top
View user's profile Send private message
r3dsc0rpi0n



Joined: 20 Apr 2005
Posts: 354
Location: Zagreb

PostPosted: 16.02.2006 18:26    Post subject: Add user to your forum ignore list Reply with quote

@:cosmos:

daj neki live preview ovak je tesko zakljuciti sto u biti zelis napravit.


@retro_one

vjerovatno zato jer ce imati problema sa ie-om...

_________________
::: Fortis est, qui se vincit ! ::::
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
vedran



Joined: 08 Sep 2003
Posts: 458

PostPosted: 16.02.2006 19:28    Post subject: Add user to your forum ignore list Reply with quote

r3dsc0rpi0n wrote:

@retro_one

vjerovatno zato jer ce imati problema sa ie-om...


Kakvih problema?
Ako je pixel full transparentan(100%) nebi trebalo biti problema...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 16.02.2006 21:57    Post subject: Add user to your forum ignore list Reply with quote

scorpion misli na alpha transparency... koji nije potreban

ako stvarno imaš frku koristi ono kaj je retro_rekao
Back to top
View user's profile Send private message Send e-mail Visit poster's website
:cosmos:



Joined: 12 Sep 2003
Posts: 2098
Location: México

PostPosted: 17.02.2006 00:01    Post subject: Add user to your forum ignore list Reply with quote

ma nije frka, jer mi nije u interesu napraviti kompletan css validan jer koristim neke hackove zbog koji ne moze proci validacija.

ali sam cisto htio znati.. jer koristim puno toga, i radi ali ne prolazi validaciju.

ovako to izgleda.


znaci, gledamo onu strelicu, ona je definirana kao background,, znaci bitan mi je onaj right jer je ispred svega slika koja je flotana na left, tako da ako definiram kolko je desno,, nece biti na tom rubu. i moram je spustiti za 12pxa. sto i radi. ali eto..

moglo se ici sa margin cijelog tog h1 taga, ali opet ne bi imao tu preciznost da bude tamo. vec bi uvijek visio negdje vise negdje manje, pogotovo u IEu, ovako se vidi svugdje isto.

ako jos nesto nije jasno recite..
malo mi glupo da nikada nitko nije to ubacivao Smile

c
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
r3dsc0rpi0n



Joined: 20 Apr 2005
Posts: 354
Location: Zagreb

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

Code:

background: #ff0000 url(1.gif) no-repeat;
background-position: 95% 10%;



Very Happy

_________________
::: Fortis est, qui se vincit ! ::::
Back to top
View user's profile Send private message Send e-mail 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