![]() |
Image currently on left, want to float on right
2 Attachment(s)
I am working on a email signature for Outlook that will become our company standard. It will be auto generated by a program I will write but I'm having trouble doing what I want. I first created the signature in Microsoft Word but it was a jumbled mess, 8Kb large and unreadable. I then rewrote it by hand to do the exact same thing (down to 1Kb). Problem is I want the image to float just to the right of my text block, not to the left. Every combination of float and align I've tried puts the image right justified all the way and not right next to the text block. Here is my current code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">Attachment 10720 However here is what I WANT it to look like: Attachment 10719 Can anyone help me get this positioned like that? I cannot figure it out. In essence I want a two column table (which is how I'd do it in the past) but I want to do it per css standards if possible. -Allan |
Hi vseven,
Try this instead: Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
Hello vseven,
I tried not to change too much of your original ... didn't test it in an email though so no idea if it works - Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
teedoff & Excavator - Thanks. Both kinda work better then my example but both still aren't "floating" like I imagine.
The problem is having to set a width (of 960 or 600 or anything). It floats on the right and I want it to butt right against the text. BUT I don't want the text to wrap except on my line breaks nor do I know ahead of time how "wide" there signature is (since the email address can vary a lot). Is there a way to truly "float" the image to the right of the text so it stays there like in a two column table? Example: Code:
------------------------------ |
If this is an emailer, I'm thinking divs wont work as most mail programs dont render them correctly. Tables would be needed.
|
We are using Outlook and this signature will only be used when they are creating a HTML based email. The div's so far work fine...they just aren't doing what I want. But if tables are the only way to go then that's what I'll use...I was hoping to do this the "right" way though.
|
No this will work. One thing you can do is instead of floating your logo right, float the text left. The code I posted above, I gave that div tag an id of main. SO you could give #main a width and float: left;
Then you'd need to move your div with the logo and all below the main div, since floats come first in the markup. Here is the revised code I posted above. Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
Thats just about it Teedoff, just had to remove the "width" tag on the main since I don't want a set width and clean up a couple little things. I added a bit to the logo class so I can do margins and adjust it up and down. Here is what I have modified that I'll start testing with the actual signatures.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| All times are GMT +1. The time now is 06:57 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.