Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
jeffpelletier #1
line-height style negated by image insertion
The line-height attribute works fine in IE using this code:
Stylesheet:
.text2 { font-family: Arial, Helvetica, sans-serif; font-weight:bold;
font-size:10px; color:#000000; text-decoration:none; line-height:20px; }
Code:
<div style="padding:0px 10px 10px 10px">
<span class="text2"> <u>My Text</u> <a href="mypdf.pdf"
target="_blank">more</a> </span>
</div>
but when I add an image after the 'more' link like so:
<div style="padding:0px 10px 10px 10px">
<span class="text2"> <u>My Text</u> <a href="mypdf.pdf"
target="_blank">more</a><img src="images/myimage.gif" width="8" height="6" />
</span>
</div>
it negates the line-height specified in the styles. Any ideas why?
jeffpelletier Guest
-
Adjust leading (line height) in form field
I'm having the same issue. Please could you explain how to let the user change the leading. thanks -
Obtaining Width and Height for an Image
I am having a problem here. I have an ASP page which displays different images according to the querystring and the images are all of different... -
Row Height - Image Tiling when Printing
Hi - I have posted a protoype page for our new Web site hoping folks can help with two issues: www.scadawireless.com/newsite/draft3.htm When... -
CSS line height bug with lists in Opera?
I was hoping someone could shed some light on a CSS bug... I have an <ul> unordered list with the line-height set to 1.5em. IE and Netscape... -
Image Height and Width values
After pulling an image from the data base and the Image.Height and Image.Width are not set to the ImageURL's attributes. 1) Is there a way to... -
Murray *TMM* #2
Re: line-height style negated by image insertion
Which DW are you using? Is the page rendering in quirks mode or standards
mode? What happens if you put the image outside the <span>?
In DW8, I do not see the problem you are describing.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"jeffpelletier" <webforumsuser@macromedia.com> wrote in message
news:dhu00m$h1v$1@forums.macromedia.com...> The line-height attribute works fine in IE using this code:
>
> Stylesheet:
> .text2 { font-family: Arial, Helvetica, sans-serif; font-weight:bold;
> font-size:10px; color:#000000; text-decoration:none; line-height:20px; }
>
> Code:
> <div style="padding:0px 10px 10px 10px">
> <span class="text2"> <u>My Text</u> <a href="mypdf.pdf"
> target="_blank">more</a> </span>
> </div>
>
> but when I add an image after the 'more' link like so:
>
> <div style="padding:0px 10px 10px 10px">
> <span class="text2"> <u>My Text</u> <a href="mypdf.pdf"
> target="_blank">more</a><img src="images/myimage.gif" width="8" height="6"
> />
> </span>
> </div>
>
> it negates the line-height specified in the styles. Any ideas why?
>
>
Murray *TMM* Guest
-
jeffpelletier #3
Re: line-height style negated by image insertion
Yeah...I tried stripping the code out of my page, and inserting in a blank haml
page, and it works fine, it must be other styles affecting this somehow, I have
a couple large style sheets, I'll have to do some back-tracking!
Thanks - I'm using DWMX2004. Not sure what quirks or standards modes are.
And tried the image movement, but same results. I'll figure it out.
Thanks.
jeffpelletier Guest
-
Murray *TMM* #4
Re: line-height style negated by image insertion
If you are using DMX2004, your pages will all have a valid and complete
doctype. This means that unless you change something, you will be rendering
in Standards mode.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"jeffpelletier" <webforumsuser@macromedia.com> wrote in message
news:dhu31t$lll$1@forums.macromedia.com...> Yeah...I tried stripping the code out of my page, and inserting in a blank
> haml
> page, and it works fine, it must be other styles affecting this somehow, I
> have
> a couple large style sheets, I'll have to do some back-tracking!
>
> Thanks - I'm using DWMX2004. Not sure what quirks or standards modes are.
> And tried the image movement, but same results. I'll figure it out.
>
> Thanks.
>
Murray *TMM* Guest



Reply With Quote

