S2

« previous entry | next entry »
Jan. 26., 2006 | 10:53 am
posted by: spirit in pajautaa

Nespēju novērst vienu defektu. Ja ielieku fona bildi, man rāda, ka viss ir ok, bet monitoriem, kuriem screen area ir lielāka par 1024x7** uzreiz rodas defekts, ka bilde dubultojas uz visām pusēm no centra, jo man ir uzstādījumi
background-position: center; background-replay: no replay
ko vēl uzrakstīt, kas būtu jāizlabo, lai tā bilde uz lielākiem screeniem vnk būtu centrā, bet apkārt melns fons?!

# | jā, ir doma! | Add to Memories


Comments {12}

Krišs

from: [info]misame
date: Jan. 26., 2006 - 11:44 am
#


Centreets pa horizontaali
 _________
|   |_|   |
|         |
|         |
|         |
|_________|


Centreets pa vertikaali
 _________
|         |
|_        |
|_|       |
|         |
|_________|


Centreets abos virzienos
 _________
|         |
|    _    |
|   |_|   |
|         |
|_________|

Atbildēt | Iepriekšējais | Diskusija


from: [info]spirit
date: Jan. 26., 2006 - 12:17 pm
#

bet ja es rakstu position: center. viņš tak jau tā pat centrē abos virzienos

Atbildēt | Iepriekšējais | Diskusija


Krišs

from: [info]misame
date: Jan. 26., 2006 - 12:59 pm
#

Nu, jā, laikam ka noklusējums ir "center" abām dimensijām.
Tu varētu rakstīt arī "left center" un būtu pa kreisajā pusē centrēts pa vertikāli.

Atbildēt | Iepriekšējais


tas neizlasāmais jūzerneims

from: [info]bax55hqy8dlb
date: Jan. 26., 2006 - 01:03 pm
#

'background-position'
Value: [ [ | ]{1,2} | [ [top | center | bottom] || [left | center | right] ] ] | inherit
Initial: 0% 0%
Applies to: block-level and replaced elements
Inherited: no
Percentages: refer to the size of the box itself
Media: visual

If only one percentage or length value is given, it sets the horizontal position only, the vertical position will be 50%. If two values are given, the horizontal position comes first. Combinations of length and percentage values are allowed, (e.g., '50% 2cm'). Negative positions are allowed. Keywords cannot be combined with percentage values or length values (all possible combinations are given above).

Atbildēt | Iepriekšējais