 |
www.elektronik.si Forum o elektrotehniki in računalništvu
|
Poglej prejšnjo temo :: Poglej naslednjo temo |
Avtor |
Sporočilo |
smolko Član


Pridružen-a: Pon 08 Sep 2003 9:10 Prispevkov: 21 Aktiv.: 0.09 Kraj: Radovljica
|
Objavljeno: Čet Feb 24, 2005 4:50 pm Naslov sporočila: css background-image |
|
|
Živijo
Imam en problemček.
Na forumu bi rad nastavil sliko za ozadje, to niti ni tak problem, problem nastane ker bi rad imel sliko razstegnjeno neodvisno od resolucije.
Koda: |
</style>
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- link rel="stylesheet" href="templates/exposion_red/{T_HEAD_STYLESHEET}" type="text/css" -->
<div align="center">
<style type="text/css">
<!--
/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: #E5E5E5;
backrground-image: url(slika.gif);
scrollbar-face-color: #DEE3E7;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #006699;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: #98AAB1;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;
}
/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
|
[slovenščina je zame švedska vas] nekako izgleda |
|
Nazaj na vrh |
|
 |
frenki Moderator



Pridružen-a: Ned 23 Feb 2003 21:26 Prispevkov: 6733 Aktiv.: 28.41 Kraj: Ljubljana (JN76GB)
|
Objavljeno: Čet Feb 24, 2005 5:16 pm Naslov sporočila: |
|
|
Tukaj si pogledal?
Načeloma bi moralo delati takole, je pa CSS3 draft .
Koda: |
Here are some examples. The first example stretches the background image independently in both directions to completely cover the content area:
div {
background-image: url(plasma.png);
background-size: 100%;
background-origin: content}
The second example stretches the image so that exactly two copies fit horizontally. The aspect ratio is preserved:
p {
background-image: url(tubes.png);
background-size: 50% auto;
background-origin: border}
This example forces the background image to be 15 by 15 pixels:
para {
background-size: 15px;
background-image: url(tile.png)}
This example uses the image's intrinsic size. Note that this is the only possible behavior in CSS level 1 and 2.
body {
background-size: auto;
background-image: url(flower.png)}
|
|
|
Nazaj na vrh |
|
 |
smolko Član


Pridružen-a: Pon 08 Sep 2003 9:10 Prispevkov: 21 Aktiv.: 0.09 Kraj: Radovljica
|
Objavljeno: Pet Feb 25, 2005 1:11 am Naslov sporočila: |
|
|
Problem rešen  |
|
Nazaj na vrh |
|
 |
|
|
Ne, ne moreš dodajati novih tem v tem forumu Ne, ne moreš odgovarjati na teme v tem forumu Ne, ne moreš urejati svojih prispevkov v tem forumu Ne, ne moreš brisati svojih prispevkov v tem forumu Ne ne moreš glasovati v anketi v tem forumu Ne, ne moreš pripeti datotek v tem forumu Ne, ne moreš povleči datotek v tem forumu
|
Uptime: 495 dni
Powered by phpBB © 2001, 2005 phpBB Group
|