Error with right aligning, HTML Align |
Error with right aligning, HTML Align |
vcredisthtml |
Apr 29 2020, 08:44 AM
Post
#1
|
Group: Members Posts: 8 Joined: 29-April 20 Member No.: 27,306 |
Hi there! I have to make a project for my ICT online class and I have some problems. When I try to align a text to right, it just doesn't work. I tried all the position codes I know but nothing works.
Can someone help me? <p><font color=blue> Există şi întinse regiuni areice, adică fără ape curgătoare, *beep* sunt Podişul Arabiei şi partea centrală a podişului Karakum. </font></p> I have to align this thing to right - Andrei Attached File(s) Geografie.html ( 2.03k ) Number of downloads: 319 |
pandy |
Apr 29 2020, 09:55 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
See here https://htmlhelp.com/reference/css/text/text-align.html .
And please don't use the FONT tag. It's very, very outdated. Use CSS. You can add the font color to the same CSS rule where you have text-align. You've better give the P a class if you don't want all paragraphs on the page to have the same styling. Like this. CODE .something { color: blue; text-align: right } HTML <p class="something"> Există şi întinse regiuni areice, adică fără ape curgătoare, *beep* sunt Podişul Arabiei şi partea centrală a podişului Karakum. </p> If you don't know how to connect the CSS to the HTML you can read about the three ways you can do that here. https://htmlhelp.com/reference/css/style-html.html Note that the style attribute shouldn't be used other than for a quick fix. It's harder to maintain and have many other flaws. A style block in HEAD works if it's just a single page. A linked style sheet is always the best option but may be harder to grasp if you are new to CSS and used to have everything in the same document. |
vcredisthtml |
Apr 29 2020, 11:18 AM
Post
#3
|
Group: Members Posts: 8 Joined: 29-April 20 Member No.: 27,306 |
K. Thank you!
|
Lo-Fi Version | Time is now: 19th April 2024 - 10:09 PM |