I want to justify my image but does "float" work ?

54 views
Skip to first unread message

Davvit

unread,
May 28, 2009, 3:33:14 AM5/28/09
to dompdf
Hello,

I have a simple html file with he css included, but I notice under
limitations that possibly I cna not use the float attribute in order
to position my image.

Is that still the case ?

Here is my html: ( it is a php file )

(You will notice that the css is going to try and use float )

<?php
/*
* pdftest.php
*
*/
$title = "PDF test";
$keywords = "PDF test";
$description = "PDF test";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>

<title><?php echo "$title"; ?></title>
<meta name="keywords" content="<?php echo "$keywords"; ?>">
<meta name="description" content="<?php echo "$description"; ?>">
<meta name="allow-search" content="yes">
<meta name="audience" content="all">
<meta name="revisit-after" content="4 Days">
<meta name="robots" content="all, index, follow">
<meta name="copyright" content="test.com">
<meta name="Rating" content="General">
<meta name="Language" content="en">
<meta name="distribution" content="global">
<meta name="classification" content="internet marketing">
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<meta http-equiv="Content-Script-Type" content="text/javascript">

<style>


.bold {
font-weight: bold;
}

.italics {
font-style: italic;
}

.underline {
text-decoration: underline;
}

.strikethrough {
text-decoration: line-through;
}

.overline {
text-decoration: overline;
}

.leftjst {
text-align:left;
}

.rightjst {
text-align:right;
}

.leftjst_img {
float:left;
text-align: left;
margin: 10px 10px 10px 10px;
}

.rightjst_img {
float:right;
text-align: right;
margin: 10px 10px 10px 10px;
}
</style>


</head>

<body>
<p>
<span class="doctext"><span style="font-size: 30px"><span
style="color: #B30000">“Copywriting Wealth System”</span></span><br />
<br />
<span style="font-size: 14px"><span class="leftjst_img"><a
href='direct-link-11.html' alt='Copywriting-Wealth-System image'
title='Copywriting-Wealth-System image' target='_blank'><img
src='http://www.expert-world.com/im/mem_images/copywrite02.jpg'></a></
span><br />
Presenting <span class="bold"><a href='direct-link-11.html'
target='_blank'>"Copywriting Wealth System"</a></span>...<br />

<br />
<span class="italics">Where you'll learn how to crank out million
dollar sales copy easily...even if you're not a copywriter!</span><br /
>
<br />
This amazing course is crammed with little known secrets the elite
super-rich use to turn the simple words in their adverts and sales
letters into <span class="bold">PURE GOLD</span>.</span><br />
<br />
<span class="bold">Imagine owning these secrets...</span><br />
<br />
<span class="bold">*</span> How a <span class="bold">decent hook</
span> in your headline will <span class="underline">quadruple </
span>the number of people reading your sales letter...<br />

<br />
<br />
<span class="bold">*</span> How using <span class="bold">“Turbo
Words”</span> will create such an itch in the mind of your customer
<span class="bold">they won’t be able to sleep</span> until they have
ordered your product!<br />
<br />
<br />
<span class="bold">*</span> How a compelling sales letter will
double or triple your bank balance... <br />

<br />
<br />
<span class="bold">*</span> The powerful psychological buttons you
need to press to make people order now and not “think it over”... <br /
>
<br />
<br />
<span class="bold">*</span> The truth about using time worn
clichés in your copy! <br />
<br />
Take a look at the depth of insider straight-to-the-point information
you get from this full sized, 88 page course, arranged in 16 logical
chapters... <br />

<br />
And to make sure you miss nothing when you create your own money-
sucking sales letters you get an exclusive 14 point memory aid to put
on your wall.<br />
<br />
This amazing course is totally complete in itself. Study it carefully
and you will find The Keys To The Magic Kingdom of Copywriting!</
span><br><a href="Copywriting-Wealth-System/direct-11.html"
target="_blank">More info: 'Copywriting Wealth System' by Ewen Chia </
a>
</p>
<body>
<html>

I have not yet installed dompdf and would like to know if it can deal
with
the file abov, or should I try a different scrpt.

Would very much appreciate your input :)

gooman

unread,
May 29, 2009, 7:52:46 AM5/29/09
to dompdf
Hi.
I too require the ability to use the float attribute. Is this
particularly tricky to implement? Is anyone working on domPDF anymore?
I really really hope that float attribute support is added soon. Most
other CSS properties are supported, and float seems like an obvious
choice, does anyone know why it was not supported?

Cheers,
gooman

BrianS

unread,
May 29, 2009, 3:56:00 PM5/29/09
to dompdf
The float property is not currently supported. It does present some
challenges in that the floated element is taken out of the flow of the
document, requiring additional calculation to determine the space it
occupies. I don't think it's impossible, but we'll need to look into
it more before we know for certain how much work will be required to
implement.

Also, we are working on a new version of DOMPDF. However, we don't
have any plans on implementing the float property for the next
version. Any features you'd like to see implemented should be added to
our issue tracker. See <http://code.google.com/p/dompdf/issues/entry?
template=Enhancement%20Request>.

-b
Reply all
Reply to author
Forward
0 new messages