473,796 Members | 2,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Align Right

Hello,

I have a paragraph where I want to add one word at the end. I want this word
to be aligned right but I want it to appear on the same line as the last
line of the paragraph. So I don't want to use <p align="right"be cause that
drops it down to the next line. Also, I am modifying an online third party
html so I can't use CSS.

Is there an html solution to right justifying one word on the same line as
the last line of a paragraph?

Thanks,

Bob
Jul 14 '06 #1
6 2643
Hymer <ergobob@soni c[REMOVE].netscripsit:
I have a paragraph where I want to add one word at the end. I want
this word to be aligned right but I want it to appear on the same
line as the last line of the paragraph.
You need CSS for that, and it isn't quite trivial CSS code that you need.
Also, I
am modifying an online third party html so I can't use CSS.
Then stop trying. There's no point in trying to simulate such relatively
complicated issues in HTML. If you have prevented from using CSS, there's
little point in trying to achieve nice presentational features.

Instead, think about the intended _meaning_ of putting the word there, and
express that meaning using the tools you have. Such as words.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jul 15 '06 #2
In message <I1************ *******@reader1 .news.jippii.ne t>, Jukka K.
Korpela <jk******@cs.tu t.fiwrites
>I have a paragraph where I want to add one word at the end. I want
this word to be aligned right but I want it to appear on the same
line as the last line of the paragraph.
>Instead, think about the intended _meaning_ of putting the word there,
and express that meaning using the tools you have. Such as words.
Like this:

<p>Lorem ipsum [...] and then they all went home to have their
tea. (Dear reader, this next bit should be on the right) The
end.</p>

;-)
--
Andy Mabbett
Say "NO!" to compulsory ID Cards: <http://www.no2id.net/>

Free Our Data: <http://www.freeourdata .org.uk>
Jul 15 '06 #3
On 2006-07-14, Hymer wrote:
Hello,

I have a paragraph where I want to add one word at the end. I want this word
to be aligned right but I want it to appear on the same line as the last
line of the paragraph. So I don't want to use <p align="right"be cause that
drops it down to the next line. Also, I am modifying an online third party
html so I can't use CSS.
Use a CGI script to insert CSS.
Is there an html solution to right justifying one word on the same line as
the last line of a paragraph?
This uses CSS: <http://cfaj.freeshell. org/www/br.html>

--
Chris F.A. Johnson, author <http://cfaj.freeshell. org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
Jul 16 '06 #4
>Hello,
>>
I have a paragraph where I want to add one word at the end. I want this
word
to be aligned right but I want it to appear on the same line as the last
line of the paragraph. So I don't want to use <p align="right"be cause
that
drops it down to the next line. Also, I am modifying an online third
party
html so I can't use CSS.

Use a CGI script to insert CSS.
>Is there an html solution to right justifying one word on the same line
as
the last line of a paragraph?

This uses CSS: <http://cfaj.freeshell. org/www/br.html>

Thanks everyone. I wasn't sure how complicated something like that would be.
I will simply allow it to be left justified.

Bob
Jul 16 '06 #5
This can be fudged!

<p>
<table align="right" border="0" cellpadding="0" celspacing="0">
<tr>
<td>Fudged to the right</td>
</tr>
</table>
Last line of paragraph
</p>

Though the others are correct years of laying out complicated designs
before CSS 1 led to some serious fudging practice.

Jul 21 '06 #6
On 2006-07-14, Hymer <ergobob@sonicw rote:
Hello,

I have a paragraph where I want to add one word at the end. I want this word
to be aligned right but I want it to appear on the same line as the last
line of the paragraph. So I don't want to use <p align="right"be cause that
drops it down to the next line. Also, I am modifying an online third party
html so I can't use CSS.

Is there an html solution to right justifying one word on the same line as
the last line of a paragraph?
What you need ideally here is a float. Before the days of CSS, tables
(and not much else) floated, so you could try:

<table align="right">
<td>word</td>
</table>

in the last line of your paragraph. Might work, depending on what
particular combination of bugs your browser(s) has/have.

Otherwise, when you say you can't use CSS, do you just mean you can't
add a stylesheet? If you can do inline styles just do:

<span style="float: right">word</span>

On the last word.

It should appear on the same line as the last line of text; but if there
isn't room for it, it will bump down to the next line. Firefox will
currently put it on the next line anyway even if there is room (this is
a known bug).
Sep 15 '06 #7

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

Similar topics

7
6808
by: Phil Powell | last post by:
Code: <!-- script src="/js/val_header.js"></script --> <style> <!-- BODY { scrollbar-3d-light-color:#eeeedd; scrollbar-arrow-color:#000000; scrollbar-base-color:#000000; scrollbar-dark-shadow-color:#eeeedd;
7
5099
by: Stan Brown | last post by:
http://www.acad.sunytccc.edu/instruct/sbrown/stat04/qz05_.htm A table comes near the beginning of the page. I have the <td> of row 1 column 1 styled in line with border-top:none and border-left:none. Yet the top and left borders are still present. I've read the Tables section of the CSS2 spec several times, but obviously there's something I'm not getting. Can someone help? --
12
95548
by: Ted Mencini | last post by:
When I replaced older <IMG ALIGN=RIGHT ...> tags with a CSS definition <IMG class=right ...> xxx.css: IMG.right { BORDER: 0; align: right } I notice that the effect is NOT the same. While in the past the text was flowing smoothly around the picture on the right side there is now a hard cut: Text, then picture below with white space on the left and finally
10
66050
by: Markus Ernst | last post by:
Hi I have a strange problem with vertical-align. The case can be viewed at http://www.brainput.info/geschichte.html. HTML code: <div id="bild"><img src="geschichte.gif" width="274" height="29" alt="Wir schreiben die Geschichte Ihres Unternehmens."></div>
8
20034
by: André Hänsel | last post by:
Hi! When I put a table into a table and try to align it right, it works in IE but not in Firefox. Simplest code to reproduce: <html> <body> <table style="width: 100%"> <tr>
1
10979
by: Astra | last post by:
Hi All This has been bugging me for months and I just can't my finger on why it won't work in Safari/FireFox (IE lets me off cos it's nice liek that). In essence, the offending code is as follows: <TD CLASS="NavBarHeaderCellB"> <!-- #include file="../incs/sprocs/fred.asp" --> </TD>
3
15009
by: kai | last post by:
Hi, All When I place a label on a Web form, label text is always left align, I cannot find the property to set right align. Any way to set align property for the label text to right align? Thanks Kai
3
4423
by: acunnon | last post by:
I am trying to put together an login page my problem is getting the three items aligned to the middle verticaly without specifing a height to anything on the page. CSS html{ height:100%; min-height:100%; } body{ vertical-align:middle;
13
2676
by: Roderik | last post by:
Hi, I am wondering why (half of the) squared images are not aligned on the right of the text in Internet Explorer (using <img ... align="right" />. I thought this was supported even in IE. In FF and Opera it works fine. http://www.roderik.net/2008/05/25/robotchallenge-vienna-2008/ Mucht thanks for any suggestions.
3
13303
by: happyse27 | last post by:
Hi All, I wanted to align the text box for user registration but the code just wont budge... Kindly advise what is wrong? Cheers... Andrew <HTML>
0
9685
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
10237
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
10018
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7553
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
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
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
2928
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.