473,803 Members | 2,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 20084
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:ri ght">
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@NoSpamw rote:
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
9451
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
1397
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
18744
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 column in my program's output. =============== Here is my code: ===============
1
18319
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
2131
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
1653
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
2707
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" itemStyle-Width="100px" HeaderText="Amount Per Job" HeaderStyle-Font-Bold="true" ItemStyle-VerticalAlign="middle" ItemStyle-HorizontalAlign="right" > <itemtemplate> <asp:Label ID="JobBoardPriceDisplay" style="text-align:right" runat="server"/> </itemtemplate>
2
4627
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. There is a field on the grid for the Equipment Number the field is called Equipment (I know original). The data type for this field is varchar with a length of 10 and the data is rigth justified in the table on the SQL Server.
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9565
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10550
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2972
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.