+ 1

guys how to align links to centre??

13th Jan 2017, 2:15 PM
I Am a Baked Potato
I Am a Baked Potato - avatar
28 ответов
+ 6
<center><a style="text-align:center;" href="http://www.google.com" target="_blank">Link</a></center>
13th Jan 2017, 2:19 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 6
@visph but center will become deprecated so i styled it for safety…
13th Jan 2017, 2:32 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
@Tushar text-align is text position relative to container and not the page (css) (align is for html)
13th Jan 2017, 2:38 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
@Tushar oops, mistake! ^_^
13th Jan 2017, 2:43 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
@Tushar it doesn't redirect you anywhere… (can be empty…)
13th Jan 2017, 2:51 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
*(edited initial post)*
13th Jan 2017, 2:58 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
Pick up only informations you need, and read the rest more quickly, just for get a global idea, and remember that stuff/information exist for thinking to and finding them again the day you need it ;)
17th Jan 2017, 5:14 AM
visph
visph - avatar
+ 3
@VH: Define a css rule of text alignement for an inline element ( <a> tag is ) doesn't have any effect, as its box stretch to minimal width ^^ In your example, the <center> container element is sufficient ( block type, default text alignment at center ), else we must apply the css rule on the parent of the inlined element to align ;)
13th Jan 2017, 2:31 PM
visph
visph - avatar
+ 3
@VH: Not safe any way, this will not work in case of fallback... to be safe, avoid totally <center> and use <div> styled instead: .center { text-align:center; } <div class="center"><a href="link.html">label</a></div>
13th Jan 2017, 2:54 PM
visph
visph - avatar
+ 3
<input type="search"> is just a particular <input type="text">, semantically more accurate... Actualy there's no really visual difference, but browsers can decide to style them by other way. Also, it may be used to display virtual keyboard search-customized on mobile device.
17th Jan 2017, 1:36 AM
visph
visph - avatar
+ 3
'placeholder' is new attribute of <input> tags in Html5: "A hint to the user of what can be entered in the control" ( http://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input )
17th Jan 2017, 3:29 AM
visph
visph - avatar
+ 2
Without the 'href' attribute in the <a> tag, the link is displayed, but nothing occurs when clicking it ( except of :hover, :active and other 'decorative' css rules ), until you handle it with javascript with event listening...
13th Jan 2017, 2:56 PM
visph
visph - avatar
+ 1
i have tried first one but can't happen
13th Jan 2017, 2:20 PM
I Am a Baked Potato
I Am a Baked Potato - avatar
+ 1
thanks brother i got it..
13th Jan 2017, 2:25 PM
I Am a Baked Potato
I Am a Baked Potato - avatar
+ 1
thanks visph really helpfull
13th Jan 2017, 2:32 PM
I Am a Baked Potato
I Am a Baked Potato - avatar
+ 1
@hacker i used your statement it works ..
13th Jan 2017, 2:34 PM
I Am a Baked Potato
I Am a Baked Potato - avatar
+ 1
@hacker something i don't get ..why you use text-align..you can only use align..??
13th Jan 2017, 2:36 PM
I Am a Baked Potato
I Am a Baked Potato - avatar
+ 1
oh..thanks i don't know about that 😀
13th Jan 2017, 2:39 PM
I Am a Baked Potato
I Am a Baked Potato - avatar
+ 1
@ValentineHacker why dont you closed the center tag.??
13th Jan 2017, 2:41 PM
I Am a Baked Potato
I Am a Baked Potato - avatar
+ 1
its ok but it also work i see..😞
13th Jan 2017, 2:44 PM
I Am a Baked Potato
I Am a Baked Potato - avatar