View previous topic :: View next topic |
Author |
Message |
M@T
Joined: 23 Oct 2004 Posts: 51
|
Posted: 08.02.2006 15:35 Post subject: od 265px do desnog ruba |
|
|
znaci <div> "gore" bi zelio da mi ide od slike, do desnog
ruba browsera u svim rezolucijama nesto kao 100% u tablicama
ili je to nemoguce napraviti u CSS-u... Code: | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<head>
<title></title>
<style type="text/css">
body {
background-color:#FFFFFF;
color:#000000;
font-family:Verdana;
margin:0px 0px 0 0x;
padding:0;
}
#logo {margin:0px auto;
background:url('images/logo.gif');
width:265px;
height:198px;
padding:0px
}
#gore {
background-color:#2453ab;
position: absolute;
height:36px;
top:0px;
left:265;
width:60%;
}
</style>
</head>
<body>
<div id="logo"></div>
<div id="gore"></div>
</body>
</html> |
Hvala i pozdrav |
_________________ www.crostudio.com |
|
Back to top |
|
|
r3dsc0rpi0n
Joined: 20 Apr 2005 Posts: 354 Location: Zagreb
|
Posted: 08.02.2006 15:39 Post subject: |
|
|
popravi doctype i par gresaka u css-u imas...
netrebaju ti 2 diva, ukoliko sam dobro skuzio...
Code: | #gore
{
background: url('slika.gif') top left no-repeat;
background-color: #2453ab;
width: 100%;
height: 36px;
} |
znaci sve pucas u div gore |
_________________ ::: Fortis est, qui se vincit ! :::: |
|
Back to top |
|
|
M@T
Joined: 23 Oct 2004 Posts: 51
|
Posted: 08.02.2006 15:49 Post subject: |
|
|
Quote: | popravi doctype i par gresaka u css-u imas... |
Moguce svasta tu ima
bas mi i nije dobar kod jer mi se sada vidi samo 36px slike po visini a treba mi 198px |
_________________ www.crostudio.com |
|
Back to top |
|
|
:cosmos:
Joined: 12 Sep 2003 Posts: 2098 Location: México
|
Posted: 08.02.2006 15:56 Post subject: |
|
|
pa stavi mu onda visinu umjesto tamo 36, 198px. |
|
|
Back to top |
|
|
M@T
Joined: 23 Oct 2004 Posts: 51
|
Posted: 08.02.2006 19:37 Post subject: |
|
|
Evo sad ovo radi u IE i Operi. FF ne slusa
Code: | <html>
<head>
<title></title>
<style type="text/css">
body {
background-color:#FFFFFF;
color:#000000;
font-family:Verdana;
margin:0;
padding:0;
}
#logo {
position:absolute;
background:url('images/logo.gif');
background-color:#000;
width:265px;
height:198px;
z-index:2;
}
#gore {
position:absolute;
background-color:#2453ab;
height:36px;
top:0px;
width:100%;
padding-left: 265px;
z-index: 1;
}
</style>
</head>
<body>
<div id="logo"></div>
<div id="gore"></div>
</body>
</html> |
|
_________________ www.crostudio.com |
|
Back to top |
|
|
r3dsc0rpi0n
Joined: 20 Apr 2005 Posts: 354 Location: Zagreb
|
Posted: 08.02.2006 19:55 Post subject: |
|
|
makni padding-left |
_________________ ::: Fortis est, qui se vincit ! :::: |
|
Back to top |
|
|
|