inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 9, 2017 19:45:07 GMT -8
This is just some simple html/css and it isn't working how it should be, at all. I literally can not wrap my head around why. <font style="float: left; font-size: 30px; color: #6D2B82;font-weight: bolder;">10</font><i> Left Text Here</i><i style="float: right;">Right Text Here</i><font style="float: right;font-size: 30px; color: #6D2B82; font-weight: bolder;"> 15</font> For some reason, the above code is appearing like this: 10 Left Text Here < --------------------------> 15 Right Text Here It SHOULD appear like, right? And it's how I want it to: 10 Left Text Here < --------------------------> Right Text Here 15 So the number 15 is appearing BEFORE the text on the right, even though the code is telling it to appear right. I am genuinely confused. I don't get it < --------------------------> represents the gap between, as you can probably guess.
The place I am using this code, does not allow divs or tables, it only allows: a, p, i, strong, b, u, ul, ol, li, h1, h2, h3, img, font, br
|
|
inherit
187476
0
May 18, 2020 16:00:31 GMT -8
Star's Legacy
1,019
December 2012
starshinelegacy
|
Post by Star's Legacy on Mar 9, 2017 20:10:37 GMT -8
Try removing the float from the 15 and incorporate it under the float from the right text here and see if that helps.
So like this;
<font style="float: left; font-size: 30px; color: #6D2B82;font-weight: bolder;">10</font><i> Left Text Here</i><i style="float: right;">Right Text Here<font style="font-size: 30px; color: #6D2B82; font-weight: bolder;"> 15</font></i>
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 9, 2017 21:06:53 GMT -8
Try removing the float from the 15 and incorporate it under the float from the right text here and see if that helps. So like this; <font style="float: left; font-size: 30px; color: #6D2B82;font-weight: bolder;">10</font><i> Left Text Here</i><i style="float: right;">Right Text Here<font style="font-size: 30px; color: #6D2B82; font-weight: bolder;"> 15</font></i>
Ok that worked, thanks. I also added font-style: normal; to obviously get rid of the italics on the numbers. Can you, or anyone else explain why the way I did it, didn't work? I'd love to be able to understand so I don't make the same mistake again.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Mar 9, 2017 21:08:54 GMT -8
This is just some simple html/css and it isn't working how it should be, at all. I literally can not wrap my head around why. <font style="float: left; font-size: 30px; color: #6D2B82;font-weight: bolder;">10</font><i> Left Text Here</i><i style="float: right;">Right Text Here</i><font style="float: right;font-size: 30px; color: #6D2B82; font-weight: bolder;"> 15</font> For some reason, the above code is appearing like this: 10 Left Text Here < --------------------------> 15 Right Text Here It SHOULD appear like, right? And it's how I want it to: 10 Left Text Here < --------------------------> Right Text Here 15 So the number 15 is appearing BEFORE the text on the right, even though the code is telling it to appear right. I am genuinely confused. I don't get it < --------------------------> represents the gap between, as you can probably guess.
The place I am using this code, does not allow divs or tables, it only allows: a, p, i, strong, b, u, ul, ol, li, h1, h2, h3, img, font, br If you float an element to the left, any text or other elements following it will flow around it to the right. And if you float an element to the right, any text or other elements following it will flow around it to the left. So your having the <i style="float:right">15</i> last makes it float to the left of your first element floating right. So you have to swap the order of the right floating elements,which can be a bit confusing but that's just how it works.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 9, 2017 21:10:19 GMT -8
This is just some simple html/css and it isn't working how it should be, at all. I literally can not wrap my head around why. <font style="float: left; font-size: 30px; color: #6D2B82;font-weight: bolder;">10</font><i> Left Text Here</i><i style="float: right;">Right Text Here</i><font style="float: right;font-size: 30px; color: #6D2B82; font-weight: bolder;"> 15</font> For some reason, the above code is appearing like this: 10 Left Text Here < --------------------------> 15 Right Text Here It SHOULD appear like, right? And it's how I want it to: 10 Left Text Here < --------------------------> Right Text Here 15 So the number 15 is appearing BEFORE the text on the right, even though the code is telling it to appear right. I am genuinely confused. I don't get it < --------------------------> represents the gap between, as you can probably guess.
The place I am using this code, does not allow divs or tables, it only allows: a, p, i, strong, b, u, ul, ol, li, h1, h2, h3, img, font, br If you float an element to the left, any text or other elements following it will flow around it to the right. And if you float an element to the right, any text or other elements following it will flow around it to the left. So your having the <i style="float:right">15</i> last makes it float to the left of your first element floating right. So you have to swap the order of the right floating elements,which can be a bit confusing but that's just how it works. Ok yeah, it is but I guess knowing how it works now should help, and not make me "wtf" and wanna punch something for something so simple not working lol
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Mar 9, 2017 21:25:58 GMT -8
If you float an element to the left, any text or other elements following it will flow around it to the right. And if you float an element to the right, any text or other elements following it will flow around it to the left. So your having the <i style="float:right">15</i> last makes it float to the left of your first element floating right. So you have to swap the order of the right floating elements,which can be a bit confusing but that's just how it works. Ok yeah, it is but I guess knowing how it works now should help, and not make me "wtf" and wanna punch something for something so simple not working lol I know what you mean. Been there and done that. lol
|
|