Please Tell Me That How To Align The Link In HTML | SoloLearn: Learn to code for FREE!

+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

4/8/2021 5:39:42 PM

Aerith

15 Answers

New Answer

+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 ; }

+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.

+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

+1

Oh Thanks

+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.

0

Please "Dude" Don't Feel Sad That I Not Give Your Answer Best But I Like Your Answer Too So Jus ChillπŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€

0

Hey Both Dude And Vasiliy , You Can Tell More About Calc() Function ?????

0

Means ????

0

No You Tell Me a Question That In What I'm Intrested..... Then What Kind Of Intrest You Want To Know

0

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.....

0

Also Python Is Used For Game Developing. That's Why I'm Learning Both

0

Yes I Like Your Answers πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€πŸ˜€

0

What Type Of Changes ????

0

0

https://code.sololearn.com/WINR9pSLLCLE/?ref=app