Reply to problem with <div> height and width

Your name:

Reply:


Posted by Leszek on 10/21/06 22:52

Hi.
I have a problem with <div> tag. I have two different types of images that
need to be loaded into <div>
First kind of image has height 640px and width 480px. Second has height
480px and width 680px. Image should have border 1px and color #999999. I did
something like this:

//css

DIV.two{
border-color: #999999;
border-style: solid;
border-width: 1px;
width: 640px;
height: 480px;
}

DIV.one{
border-color: #999999;
border-style: solid;
border-width: 1px;
width: 480px;
height: 640px;
}

//css

and in html document i have:

<div class="one"></div>
<div class="two"></div>


Now i need to use only one <div> at the time, not both. Is it possible to
turn off displaying one <div> while user is clicking on the link to image?
Or maybe there is way to use only one css rule for div and just change
height and width when user click on the link to image?

Thanks.
Leszek

[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

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