Reply to Re: overwrite div properties

Your name:

Reply:


Posted by Clues on 04/10/06 14:52

> Yes. It's pretty much the standard behaviour for CSS.
>
> What have you tried and what problems have you run into?



Hello, and first of all, thanks.

Simply, it seems the properties I declare in the content are ADDED (not
substitued, as I thought it could be) to the ones I declare in the
contained div.

#content {
float: left;
width: 440px;
margin: 8px 0 0 4px;
}

#content img {
padding: 3px;
margin: 2px 12px 0px 0px;
border: 1px solid #06598E;
float: left;
}

#content p {
margin-bottom: 20px;
padding-left: 14px;
padding-right: 14px;
padding-top: 14px;
padding-bottom: 14px;
background: #fff;
text-align:justify;
}

#gallery img {
padding: 3px;
margin: 1px 1px 1px 1px;
border: 1px solid #000000;
}


If I insert an image (400 px large) inside "gallery",
it creates a lot of space around it. So, I would like #gallery "to
reset" the things in some way, while preserving its position inside the
content div.

Clues

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация