+ 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
21 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 ;
}
+ 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.
+ 1
For example
<head>
<title align=“center”> text</title>
</head/
+ 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;
}
+ 1
Tirhten patel what are you saying Dude multiple answers.
+ 1
Tirhten patel are you mad???
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
What Type Of Changes ????
0
Ddd
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
- 1
Means ????
- 1
No
You Tell Me a Question That In What I'm Intrested.....
Then What Kind Of Intrest You Want To Know
- 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.....
- 1
Also Python Is Used For Game Developing.
That's Why I'm Learning Both
- 1
Yes I Like Your Answers 😀😀😀😀😀😀