Please Tell Me That How To Align The Link In HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please Tell Me That How To Align The Link In HTML

In My Code I Want To Align The Text "Click Here" Attached With The Link This Is My Code https://code.sololearn.com/WZ1L28yL9RSi/?ref=app In Line No. 13

8th Apr 2021, 5:39 PM
Tirthen Patel
Tirthen Patel - avatar
20 Answers
+ 4
Aerith, take a look at my corrections again, it will be better this way ☺️ body { text-align: center; } You can also align the width of all images by subtracting the width of the border, as well as all padding and margins from the desired width. This can be done either independently or using the calc () function, for example: .images { border-style : groove ; border-color : rgb(125,255,125) ; border-width : 10px ; padding : 5px ; max-height: calc(100vh - 40px); max-width: calc(100% - 10px * 2 - 5px * 2 - 5px * 2); } Now you don't need to indent the text: .link{ text-indent : 50px ; }
8th Apr 2021, 6:05 PM
Solo
Solo - avatar
+ 1
Your question is very unspecific. What exactly are you trying to do with the link? Do you mean that a few css props aren't working like you expect? That would be because an <a> is an inlign element other than a <p> element which is a block. Please try to describe your problem a bit further. PS: the alt attribute on images isn't only shown if the image can't be loaded. It is what screenreader for blind people can read as well.
8th Apr 2021, 6:01 PM
Dude
+ 1
And Thanks Vasiliy That You Tell Me The Function Calc() I Don't Know About That Function So Thanks Again And Also Thanks To Dude That You Also Give Your Best😀😀😀😀😀😀😀😀 Thank You Friends Again
8th Apr 2021, 7:35 PM
Tirthen Patel
Tirthen Patel - avatar
+ 1
Oh Thanks
9th Apr 2021, 12:09 PM
Tirthen Patel
Tirthen Patel - avatar
+ 1
Be careful when you use calc(). It can help in some cases but for responsibility (different screen sizes) it can break things. From my experience i can tell you that px shouldn't be used at all if you want to build the website for different devices. You can take a look at rem for example to replace px.
9th Apr 2021, 1:37 PM
Dude
+ 1
For example <head> <title align=“center”> text</title> </head/
24th Aug 2021, 1:28 AM
Kenshi
Kenshi - avatar
+ 1
Without using the body element to center the link. You could do this instead. Add the class .link to your <a> element. HTML <a class="link"> Since the default display property value for <a> is inline. We need to change the property value to block. Then we apply the text-align property and the center value. CSS .link { display: block; text-align: center; }
28th Dec 2022, 11:27 PM
Chris Coder
Chris Coder - avatar
+ 1
Tirhten patel what are you saying Dude multiple answers.
23rd Mar 2024, 11:39 AM
Tewoflos Daniel
Tewoflos Daniel - avatar
+ 1
Tirhten patel are you mad???
2nd Apr 2024, 6:56 PM
Tewoflos Daniel
Tewoflos Daniel - avatar
0
Please "Dude" Don't Feel Sad That I Not Give Your Answer Best But I Like Your Answer Too So Jus Chill😀😀😀😀😀😀😀😀😀😀
8th Apr 2021, 7:33 PM
Tirthen Patel
Tirthen Patel - avatar
0
Hey Both Dude And Vasiliy , You Can Tell More About Calc() Function ?????
8th Apr 2021, 7:38 PM
Tirthen Patel
Tirthen Patel - avatar
0
What Type Of Changes ????
9th Apr 2021, 9:02 AM
Tirthen Patel
Tirthen Patel - avatar
0
Ddd
10th Apr 2021, 12:38 PM
siavash
siavash - avatar
0
https://t.me/Coders_Crafters join our Telegram group for discussion, DOUBT'S with everyone about coding. Let's interact with all coders About programming language like HTML CSS, JS, PY
8th Oct 2023, 5:24 AM
Alison Pinto
Alison Pinto - avatar
- 1
Means ????
8th Apr 2021, 7:58 PM
Tirthen Patel
Tirthen Patel - avatar
- 1
No You Tell Me a Question That In What I'm Intrested..... Then What Kind Of Intrest You Want To Know
9th Apr 2021, 2:28 AM
Tirthen Patel
Tirthen Patel - avatar
- 1
If You Are Asking About My Favourite Language Then It Is Python And HTML Python Because I'm A Student... And HTML Because I'm Intrested In Web Developing And Game Developing.....
9th Apr 2021, 2:31 AM
Tirthen Patel
Tirthen Patel - avatar
- 1
Also Python Is Used For Game Developing. That's Why I'm Learning Both
9th Apr 2021, 2:32 AM
Tirthen Patel
Tirthen Patel - avatar
- 1
Yes I Like Your Answers 😀😀😀😀😀😀
9th Apr 2021, 7:42 AM
Tirthen Patel
Tirthen Patel - avatar
10th Apr 2021, 12:39 PM
siavash
siavash - avatar