css - HTML word lining -
this line
<p style="text-align:center;"> <a href="www.facebook.com" style="text-decoration:none;color:black"> <h2>about us</h2></a> <a href="www.facebook.com" style="text-decoration:none;color:black"> <h2>contact us</h2></a> <b> | </b> <a href="www.facebook.com" style="text-decoration:none;color:black"> <h2>f . . q</h2></a> <b> | </b> <a href="www.facebook.com" style="text-decoration:none;color:black"> <h2>shipping</h2></a> <b> | </b> <a href="www.facebook.com" style="text-decoration:none;color:black"> <h2>return policy</h2></a> </p> this result:
about us
contact us
|f . . q
|shipping
|return policy
i want result :
about | contact | f.a.q | shipping | return policy anything did wrong?
you can't place block elements(h2) inside anchors(a)
if remove <h2> <a> problem solve check updated code here
but thing ul li best fit in structure.
also if add space between <a> , <b> use margin
Comments
Post a Comment