Hi everybody!
I'm making a page for an exam at uni.
In two DIV blocks of it there should appear (and disappear) some
"icons", due to XML messages, so I dunno how many of them should I can
obtain; I want to show a small image, with its "icon name" under it, so
I thought to use a DIV where I put a small image, a <br/and the icon
name (and text-align:center as CSS). My page is fully liquid, so my DIVS
may be resized, and I wanted them to be distributed line-by-line until
filling the DIV line, and after it the next one.
I tried giving them a fixed width and weight, and giving display:inline
style to "divcam" class DIVs, but it didn't work... I can't find a way
to put them inline. I prepared a "copy" of that part to show U my
problem, and copied it here... can U help me? I hate those damn DIVs in
the middle there! :-)
Do U think there is another way to show "icons"? I need a single ID for
the image+text!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>How to put icons inline?</title>
<style type="text/css">
#boxresources{h eight:auto !important;
height:400px; /* For IE before 7*/
min-height:400px;
border: 3px dashed #FF9900;
}
..fotocam{margi n:0px;
padding:0px;
}
..divcam{border :none; // width and height oversized, to be sure of giving
space to text;
/*width:100px;
height:100px;
display:inline; */
margin:28px;
padding:0px;
text-align:center;
}
</style>
</head>
<body>
<div id="boxresource s">
<div id="ciao" class="divcam"< !--It's a 32pxX32px picture-->
<img src="http://www.northview.o rg/images/client/2/videocamera.gif "
class="fotocam"/>
<br/>ciao
</div>
<div id="hi" class="divcam">
<img src="http://www.northview.o rg/images/client/2/videocamera.gif "
class="fotocam"/>
<br/>hi
</div>
</div>
</body>
</html>
This is my idea for the icon: |-------------|
| --------- |
| |fotocam| |
| |image | | <==divcam DIV
| --------- |
| "iconname" |
|-------------|
Thanks in advance for your help! ;-)
Massi
I'm making a page for an exam at uni.
In two DIV blocks of it there should appear (and disappear) some
"icons", due to XML messages, so I dunno how many of them should I can
obtain; I want to show a small image, with its "icon name" under it, so
I thought to use a DIV where I put a small image, a <br/and the icon
name (and text-align:center as CSS). My page is fully liquid, so my DIVS
may be resized, and I wanted them to be distributed line-by-line until
filling the DIV line, and after it the next one.
I tried giving them a fixed width and weight, and giving display:inline
style to "divcam" class DIVs, but it didn't work... I can't find a way
to put them inline. I prepared a "copy" of that part to show U my
problem, and copied it here... can U help me? I hate those damn DIVs in
the middle there! :-)
Do U think there is another way to show "icons"? I need a single ID for
the image+text!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>How to put icons inline?</title>
<style type="text/css">
#boxresources{h eight:auto !important;
height:400px; /* For IE before 7*/
min-height:400px;
border: 3px dashed #FF9900;
}
..fotocam{margi n:0px;
padding:0px;
}
..divcam{border :none; // width and height oversized, to be sure of giving
space to text;
/*width:100px;
height:100px;
display:inline; */
margin:28px;
padding:0px;
text-align:center;
}
</style>
</head>
<body>
<div id="boxresource s">
<div id="ciao" class="divcam"< !--It's a 32pxX32px picture-->
<img src="http://www.northview.o rg/images/client/2/videocamera.gif "
class="fotocam"/>
<br/>ciao
</div>
<div id="hi" class="divcam">
<img src="http://www.northview.o rg/images/client/2/videocamera.gif "
class="fotocam"/>
<br/>hi
</div>
</div>
</body>
</html>
This is my idea for the icon: |-------------|
| --------- |
| |fotocam| |
| |image | | <==divcam DIV
| --------- |
| "iconname" |
|-------------|
Thanks in advance for your help! ;-)
Massi
Comment