Elvis L Posted March 9, 2015 Report Share Posted March 9, 2015 (edited) sveiki, lieta tāda, ka man ir divas bildes: headeri un headera 1px strēmele, kurai vajadzētu atkārtoties fonā, ja monitora izmērs ir liels, pašlaik bilde neatkārtojas header{ background: url(../img/stremele.jpg) , url(../img/header.jpg) bottom center; background-repeat: no-repeat; height: 265px; } kādi būtu Jūsu ieteikumi? izdevās kaut kā šādi, nezinu gan cik tasa ir pareizi header{ background:url(../img/header.jpg) no-repeat bottom center,url(../img/slice.jpg) repeat-x; height: 265px; } Edited March 9, 2015 by Elvis L Quote Link to comment Share on other sites More sharing options...
enkrs Posted March 9, 2015 Report Share Posted March 9, 2015 Parasti to paveic ar diviem elementiem: <div class="header-outer"> <div class="header">teksts</div> </div> Un CSS: .header-outer { background: url(../img/slice.jpg) repeat-x) } .header { background: url(../img/header.jpg) no-repeat bottom center; } Bieži sanāk ka ārējam elementam var izmantot to pašu <body> un nelikt papildus <div> Strādā jau tā arī kā raksti otrajā piemērā ar CSS3, bet nevaru atrast kuros browseros tas ir supportēts. Quote Link to comment Share on other sites More sharing options...
Kavacky Posted March 9, 2015 Report Share Posted March 9, 2015 Faktiski turpat jau supports arī bija. Quote Link to comment Share on other sites More sharing options...
F3llony Posted March 9, 2015 Report Share Posted March 9, 2015 (edited) background-repeat: no-repeat; Es esmu vienīgais, kas pie sevis galvā lasa kodu... emm... kā kodu? fonā-esošā-objekta-atkārtošana: neatkārtot; Hnnngh... Edited March 9, 2015 by F3llony Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted March 9, 2015 Report Share Posted March 9, 2015 Pats esi norādījis background-repeat:no-repeat; Quote Link to comment Share on other sites More sharing options...
jurchiks Posted March 10, 2015 Report Share Posted March 10, 2015 facepalm Quote Link to comment Share on other sites More sharing options...
Elvis L Posted March 11, 2015 Author Report Share Posted March 11, 2015 Paldies par ieteikumiem Quote Link to comment Share on other sites More sharing options...
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.