sandrulis Posted June 11, 2009 Report Posted June 11, 2009 (edited) Kā var iekš html uzlikt divus fonus vienlaicīgi labajā pusē vienu, bet otrā pusē otru? Edited June 11, 2009 by sandrulis Quote
EdgarsK Posted June 11, 2009 Report Posted June 11, 2009 (edited) sitads jau bija viens posts.. (TRASH) Dari ta :D <div style='position:absolute;top:0px;left:0px;width:50%;height:100%;background:blue url("tava_urla_kreisajai_pusei");'></div> <div style='position:absolute;top:0px;left:50%;width:50%;height:100%;background:red url("tava_urla_labajai_pusei");'></div> <div style='position:fixed;background:transparent;top:0px;left:0px;'> Tavs lapas saturs </div> kautkā sitā ne ? bet principā background ir tikai viens :) Edited June 11, 2009 by EdgarsA Quote
sandrulis Posted June 11, 2009 Author Report Posted June 11, 2009 Sorry ja jau taads bija, bet paldies! ;) Quote
nemec Posted June 11, 2009 Report Posted June 11, 2009 tad jau labāk paņemt bildi 2000x1px, 1000px nokrāsot vienā krāsā un otru pusi 1000px nokrāsot citā krāsā. Tad uzlikt uz body (kas ietver visu lapu) cssā background: url('2000x1.png') repeat-y center center; Quote
EdgarsK Posted June 11, 2009 Report Posted June 11, 2009 nemec, domāju ka piekritīsi, ar programmēšanu 1 lietu var izdarīt 1000 veidos :) Quote
ezis Posted June 25, 2009 Report Posted June 25, 2009 hmmm.. bet kā ar pašu html tagu..? :? es uzlieku bg gan body, gan html, abiem background-attachment:fixed; .... firefox vis strādā kā nākas, bet IE gļuko :\ proti, IE nerāda BG image html tagam, bet krāsu rāda... katru reizi aizvien vairāk un vairāk zb tas IE :\ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.