|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
[SOLVED] text-align:lol;
Original question:
If you have 1 paragraph and you want to align 2 words one in each side as the attachment suggests, how do you do it? I tried the following code: Code:
<p class="align_right">HURRAY! <span class="align_left">HURRAY AGAIN!</span></p> Code:
.align_right
{
text-align:right;
}
.align_left
{
text-align:left;
}
[SOLVED] Answer: Use the float rule instead, so: Code:
.align_right
{
float:right;
}
.align_left
{
float:left;
}
Last edited by odedta; 06-16-2014 at 06:27 AM. |
|
|
|
|
|
#2 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 359054
Join Date: Nov 2012
Device: default
|
What are the actual results you get?
I would suspect the right-align to apply to the location of the span element and the left-align to apply within it. So: PHP Code:
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Exactly what you posted, but I needed to use float instead of text-align... that's a result of working all day long :/
Thanks anyway. |
|
|
|
|
|
#4 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
It helps anyone who might stumble across the same problem in the future, or lurkers who are too afraid to post (but DO read/absorb a lot of information from the forums). |
|
|
|
|
|
|
#5 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,769
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I agree with Tex2002ans. Please do put back the original question along with the solution for anyone else who may have the same problem.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Oh, the question was so silly I was embarassed about leaving it there, alright hehe
|
|
|
|
|
|
#7 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
This question also reminds me of a semi-related ADE "bug" I ran across with floating something left/right on the same line:
https://www.mobileread.com/forums/sho...d.php?t=210804 Quote:
Even the best of us sometimes stumble across something that is baffling, even though the solution is obvious to some others.
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Text still full justifying on iPad, even through style says align left | SamL | ePub | 13 | 04-20-2017 11:24 PM |
| Center align text in epub | virtual_ink | ePub | 23 | 08-31-2011 07:27 AM |
| need help on how to align a table to the right | NASCARaddicted | ePub | 6 | 02-18-2011 02:46 PM |
| I can not align the text...help please! XD | derfel_spain | ePub | 17 | 12-18-2010 10:45 AM |
| Justify align in RTF? | griffbrad | Sony Reader | 6 | 11-27-2006 04:25 PM |