Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
css div điđa?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
idraganj



Joined: 24 Oct 2003
Posts: 40
Location: Karlovac

PostPosted: 20.07.2005 12:09    Post subject: css div điđa? Add user to your forum ignore list Reply with quote

ne kužim zašto mi što god napišem u #main body {} ne funkcionira a npr. u tablici sve radi. I ova margina ne radi. help pliz!

<html>
<link href="stil.css" rel="stylesheet" type="text/css">

<div id="main">
<body>

<table>
<tr>
<td>nesto</td>
<td>bezveze</td>
</tr>

</table>

</body>
</div>
</html>
-----------------
#main {
margin-top: 0px;
height: 200px;
}

#main body {
background: #999999;

}

#main table {
width: 100%;
font-family: verdana;
}
Back to top
View user's profile Send private message Visit poster's website
red



Joined: 03 May 2004
Posts: 919
Location: Zabok

PostPosted: 20.07.2005 12:26    Post subject: Add user to your forum ignore list Reply with quote

#main body? Kaj je to? Si provukao kôd kroz validator kojim slučajem?

_________________
Get busy living, or get busy dying.
Back to top
View user's profile Send private message Visit poster's website Twitter profile
idraganj



Joined: 24 Oct 2003
Posts: 40
Location: Karlovac

PostPosted: 20.07.2005 12:31    Post subject: Add user to your forum ignore list Reply with quote

red wrote:
#main body? Kaj je to? Si provukao kôd kroz validator kojim slučajem?


baš i nisam. Niam si baš na ti s css-om - znači body stavljam posebno - bez ovog #main?
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 20.07.2005 12:32    Post subject: Add user to your forum ignore list Reply with quote

Jedini mogući parent element od BODY je HTML, a HTML nema parenta (osim u ludom IE, ali to je već druga priča, potraži 'The Star HTML' CSS hack).

Selektor #main body bi značio 'BODY element unutar elementa koji ima ID=main', a to je sasvim glupo jer bi to onda radilo samo kad bi stavio ID na HTML element.

Ako želiš style-ati BODY element, radi to jednostavno sa 'body { ... }'.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
idraganj



Joined: 24 Oct 2003
Posts: 40
Location: Karlovac

PostPosted: 20.07.2005 12:50    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
Jedini mogući parent element od BODY je HTML, a HTML nema parenta (osim u ludom IE, ali to je već druga priča, potraži 'The Star HTML' CSS hack).

Selektor #main body bi značio 'BODY element unutar elementa koji ima ID=main', a to je sasvim glupo jer bi to onda radilo samo kad bi stavio ID na HTML element.

Ako želiš style-ati BODY element, radi to jednostavno sa 'body { ... }'.


da,da jasno mi je sad, hvala-pozdrav.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group