Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Align Text with image top IE/Firefox
Old 03-13-2006, 07:14 PM Align Text with image top IE/Firefox
Novice Talker

Posts: 5
Trades: 0
Hi!

I'm having trouble getting text to align with the exact top of an image once I've created a new paragraph. It almost lines up in IE, but in Firefox it's down by 10+pixels. See example:

http://rawlinsdesign.com/test/test.html

It also seems to happen when the text/image are in the same cell:

http://rawlinsdesign.com/test/testfloat.html


Any help is greatly appreciated, Thanks!
Reply With Quote
philminatz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-13-2006, 10:10 PM Re: Align Text with image top IE/Firefox
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
It's your paragraph tag that's causing the issue.

Put this in somewhere:
Code:
<style type="text/css">
<!--
p {
    margin-top:  0;
    margin-bottom:  1em;
}
-->
</style>
Alternatively, you could put this into a stylesheet as well.

This will work the same for both IE and FF.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-14-2006, 12:01 AM Re: Align Text with image top IE/Firefox
Novice Talker

Posts: 5
Trades: 0
Thanks so much, that did it just fine. In fact, margin was an option in the Dreamweaver CSS editor.
philminatz is offline
Reply With Quote
View Public Profile
 
Old 03-14-2006, 01:18 AM Re: Align Text with image top IE/Firefox
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
No problem!

Any time you have alignment issues like that, margin is usually the first, last, and only place to look.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to Align Text with image top IE/Firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52046 seconds with 12 queries