473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

right justify image?

JG
I'm new obviously to html and I'm looking for a way
put an image on the right side of the page opposite
text on the left. How does one do this? I've heard
of text wrapping of an image but not sure if this is
what I really want, and further don't know how to do
that either.
Appreciate any info.
Mar 26 '07 #1
9 20060
JG wrote:
I'm new obviously to html and I'm looking for a way
put an image on the right side of the page opposite
text on the left. How does one do this? I've heard
of text wrapping of an image but not sure if this is
what I really want, and further don't know how to do
that either.
table?

--
iTech Consulting Services Limited
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Mar 26 '07 #2
JG wrote:
I'm new obviously to html and I'm looking for a way
put an image on the right side of the page opposite
text on the left. How does one do this? I've heard
of text wrapping of an image but not sure if this is
what I really want, and further don't know how to do
that either.
Appreciate any info.

I defined a style in my CSS file:
img.rgt { margin: 1em; float: right }

Then, my HTML markup for a right-justified image is:
<img class=rgt src="xxx.jpg" . . . >

Text will wrap on the left.

--

David E. Ross
<http://www.rossde.com/>.

Anyone who thinks government owns a monopoly on inefficient, obstructive
bureaucracy has obviously never worked for a large corporation. © 1997
Mar 26 '07 #3
Mon, 26 Mar 2007 11:52:19 +0800 from Man-wai Chang
<to***********@gmail.com>:
JG wrote:
I'm new obviously to html and I'm looking for a way
put an image on the right side of the page opposite
text on the left. How does one do this? I've heard
of text wrapping of an image but not sure if this is
what I really want, and further don't know how to do
that either.

table?
Bzzt! No, but thanks for playing.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Mar 26 '07 #4
Sun, 25 Mar 2007 19:28:40 -0500 from JG <NoMail@NoSpam>:
I'm new obviously to html and I'm looking for a way
put an image on the right side of the page opposite
text on the left. How does one do this? I've heard
of text wrapping of an image but not sure if this is
what I really want, and further don't know how to do
that either.
Appreciate any info.
CSS is the answer. Really this should be done with classes and an
external style sheet, but here's a quick and dirty method.

Do you want the text to flow around the image?

<p>
<img src="..." height="..." width="..." alt="..."
style="float:right">
Text of paragraph
</p>

Do you want the image all by itself horizontally, with text resuming
after the bottom edge of the image?

<div style="text-align:right">
<img src="..." height="..." width="..." alt="...">
</div>

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Mar 26 '07 #5
>>I'm new obviously to html and I'm looking for a way
>>put an image on the right side of the page opposite
text on the left. How does one do this? I've heard
table?
Bzzt! No, but thanks for playing.
I said so because css is not html. this group is about html. :)

--
iTech Consulting Services Limited
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Mar 26 '07 #6
JG
Re: right justify image replies.
THANKS for all replies, they helped me get what I needed.
And I will continue to study CSS.
Mar 26 '07 #7
Mon, 26 Mar 2007 16:41:28 +0800 from Man-wai Chang
<to***********@gmail.com>:
>I'm new obviously to html and I'm looking for a way
put an image on the right side of the page opposite
text on the left. How does one do this? I've heard
table?
Bzzt! No, but thanks for playing.

I said so because css is not html. this group is about html. :)
And if someone asked in an auto group how to get to another
continent, you would tell him to drive really fast onto a ramp that
slopes upward? :-)

Seriously, when someone asks how to do a job using the wrong tool,
the best advice is to redirect them to the right tool.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Mar 27 '07 #8
On 26 Mar, 01:28, "JG" <NoMail@NoSpamwrote:
I'm new obviously to html and I'm looking for a way
put an image on the right side of the page opposite
text on the left. How does one do this? I've heard
of text wrapping of an image but not sure if this is
what I really want, and further don't know how to do
that either.
Appreciate any info.
<img src=" " align="right" /and then put the text required. Avoid
puting the text first as that will push the image further down and
wont right-align the image.

Regards
Huseyin

Mar 27 '07 #9
Seriously, when someone asks how to do a job using the wrong tool,
the best advice is to redirect them to the right tool.
There are people that really hates off-topic stuffs. I don't about the
people here. :)

--
iTech Consulting Services Limited
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Mar 29 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Leonard | last post by:
How do I right justify input data in a textbox? I have some textboxes that are used to input numbers, and I would like to right justify them.
0
by: David Holmes | last post by:
Hi Acc 97 is it possible to right justify numbers in a list box Thanks in advance Dave Holmes
2
by: jwatts | last post by:
Hello group, I am feeling pretty good about this program. I am just learning and am trying to get the basics down. I would like to ask if someone could tell me how to right justify the BALANCE...
1
by: Kevin R | last post by:
Hi All, I am using for(i = . . . . .) sw.WriteLine(string.Format("{0} {1}", num1, num2)); and I am getting 12 123
2
by: Tina | last post by:
Is there any way to get the text property to right justify in controls like Hyperlink buttons and labels? Thanks, T
2
by: John Wilson | last post by:
Here's a dumb question from a learner: In a datagrid in a web page, how do I right justify a column of figures? I bet its easy once you know. John Wilson
5
by: tshad | last post by:
I have a datagrid that I cannot get to right justify a money amount (which is just a label). No matter what I do - it still right justifies it. <asp:TemplateColumn Visible="true"...
2
by: eighthman11 | last post by:
Hello everyone, I'm using Access 2000 and SQL 8.0 This maybe easy but I can't figure it out. I have a linked access table to a SQL server table. I use this table on a Grid on an Access form. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.