View previous topic :: View next topic |
Author |
Message |
budha
Joined: 02 Mar 2004 Posts: 1377 Location: Osijek
|
Posted: 18.05.2005 16:49 Post subject: IE i p:first-letter |
|
|
ima li nacina da se IE "natjera" da prikazuje ovo?
Code: | p:first-letter { padding-left: 10px; } |
|
_________________ I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me. |
|
Back to top |
|
|
red
Joined: 03 May 2004 Posts: 919 Location: Zabok
|
Posted: 18.05.2005 16:55 Post subject: |
|
|
To bi trebalo bez frke radit, čak i na IE 5.5/Win. Ja probo na IE 6/Win, works fine. |
_________________ Get busy living, or get busy dying. |
|
Back to top |
|
|
budha
Joined: 02 Mar 2004 Posts: 1377 Location: Osijek
|
Posted: 18.05.2005 17:07 Post subject: |
|
|
meni radi npr
Code: | #main p:first-letter { color: f00; } |
ali padding neće...
jel vidi tko gresku?
Code: | HTML
---------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hr" lang="hr">
<head>
<title>test</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="main">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit Praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
</div>
</body>
</html>
CSS
---------------------------------------------
#main p { text-align: justify; padding-bottom: 10px; padding-top: 10px; }
#main p:first-letter { padding-left: 10px; } |
|
_________________ I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me. |
|
Back to top |
|
|
red
Joined: 03 May 2004 Posts: 919 Location: Zabok
|
Posted: 18.05.2005 17:09 Post subject: |
|
|
It works just fine here... Jesi pastirao točan kôd? |
_________________ Get busy living, or get busy dying. |
|
Back to top |
|
|
budha
Joined: 02 Mar 2004 Posts: 1377 Location: Osijek
|
Posted: 18.05.2005 18:07 Post subject: |
|
|
aha
odustajem... |
_________________ I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me. |
|
Back to top |
|
|
red
Joined: 03 May 2004 Posts: 919 Location: Zabok
|
|
Back to top |
|
|
budha
Joined: 02 Mar 2004 Posts: 1377 Location: Osijek
|
Posted: 19.05.2005 11:00 Post subject: |
|
|
koliko sam uspio testirati, definicije boje i velicine fonta rade bez problema... p:first-letter i p:first-line nece raditi ako se p nalazi u div-u
bzveze... |
_________________ I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me. |
|
Back to top |
|
|
red
Joined: 03 May 2004 Posts: 919 Location: Zabok
|
Posted: 19.05.2005 11:26 Post subject: |
|
|
Ja sam se s tim zezao kad sam radio svoj sajt... Imao sam problema jedino sa :hover stanjem kad sam definirao :first-letter. Tvoj kôd sam bio pastirao u http://www.webucator.com/resources/css/reference.html i nije bilo problema. |
_________________ Get busy living, or get busy dying. |
|
Back to top |
|
|
budha
Joined: 02 Mar 2004 Posts: 1377 Location: Osijek
|
Posted: 19.05.2005 11:46 Post subject: |
|
|
ne mogu vjerovat!!!
*ebalo ga je sto imam Code: | * { margin: 0; padding: 0; } | na pocetku!!!
thx, red! |
_________________ I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me. |
|
Back to top |
|
|
red
Joined: 03 May 2004 Posts: 919 Location: Zabok
|
Posted: 19.05.2005 11:58 Post subject: |
|
|
Hehe... though so... a pito sam jel si pastirao sve
I'm glad it works now cheerio! |
_________________ Get busy living, or get busy dying. |
|
Back to top |
|
|
budha
Joined: 02 Mar 2004 Posts: 1377 Location: Osijek
|
Posted: 19.05.2005 12:00 Post subject: |
|
|
ma inace su i css i htm oooooogromni.... pa mi bzveze bilo pastati sve... |
_________________ I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me. |
|
Back to top |
|
|
|