The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Error with right aligning, HTML Align
vcredisthtml
post 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)
Attached File  Geografie.html ( 2.03k ) Number of downloads: 319
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
vcredisthtml
post Apr 29 2020, 11:18 AM
Post #3





Group: Members
Posts: 8
Joined: 29-April 20
Member No.: 27,306



K. Thank you!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 07:41 PM