+ 1
guys how to align links to centre??
28 odpowiedzi
+ 6
<center><a style="text-align:center;" href="http://www.google.com" target="_blank">Link</a></center>
+ 6
@visph but center will become deprecated so i styled it for safety…
+ 5
@Tushar text-align is text position relative to container and not the page (css) (align is for html)
+ 5
@Tushar oops, mistake! ^_^
+ 5
@Tushar it doesn't redirect you anywhere… (can be empty…)
+ 4
*(edited initial post)*
+ 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 ;)
+ 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 ;)
+ 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>
+ 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.
+ 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 )
+ 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...
+ 1
i have tried first one but can't happen
+ 1
thanks brother i got it..
+ 1
thanks visph really helpfull
+ 1
@hacker i used your statement it works ..
+ 1
@hacker something i don't get ..why you use text-align..you can only use align..??
+ 1
oh..thanks i don't know about that 😀
+ 1
@ValentineHacker why dont you closed the center tag.??
+ 1
its ok but it also work i see..😞