|
#1
|
||||
|
||||
|
image_width tag
okay, so i'm making a new template because i really love the <IMAGE_WIDTH> tag and the template i'm using now is not compatible with IE. i've tried putting that tag everywhere and no matter what, it won't change the width of the image info. here is what i have in my CSS:
Quote:
Quote:
|
|
#2
|
||||
|
||||
|
change <div id="image-info"> to <div id="image-info" style="width:<IMAGE_WIDTH>px;">
__________________
Affordable Website Design in North Wales |
|
#3
|
||||
|
||||
|
i knew it was something with the div id, but i wasn't sure what i was missing. thanks so much!
|
|
#4
|
|||
|
|||
|
I do not see how and where you set the image in your template:
do it like this here and you will have the image correct: Code:
<img src="images/<IMAGE_NAME>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" alt="<IMAGE_TITLE>" title="<IMAGE_TITLE>" /> If you want to set the image in a predefined DIV which correlates to the image-width, you must set the CSS in image_template.html, because otherwise the PixelPost-TAG will not be interpreted Code:
<img id='the_image" src="images/<IMAGE_NAME>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" alt="<IMAGE_TITLE>" title="<IMAGE_TITLE>" /> Code:
<style type="text/css">
<!--
the_image {width:<IMAGE_WIDTH>px;margin:20px;}
-->
</style>
|
|
#5
|
||||
|
||||
|
actually i wasn't trying to resize the image, i wanted the image info to be the same width as the image, like joey was talking about in the "idea for template makers" thread. i appreciate it though, thanks!
|
|
#6
|
|||
|
|||
|
yes, that was what I told you: use the image-width-tag for the image-div or image-span or whatever CSS-element and the image will not be resized!
|
| Post Reply |
| Thread Tools | |
|
|