css - For creating click-able buttons on header div which tags should I use? -


i want add buttons on top of div (like main menu websites). yesterday created buttons using different div tag each button , adding lots of margins end result wasn't working on internet explorer i decided use different method. dl tags didn't work well, tried span tags still can't position them want. margins doesn't respond , don't know do. p.s: header div have 2 images on left , want buttons positioned on right.

for formatting / styling, tags inconsequential - depends want them in terms of look/feel, because of commonly used tags (div, span, li, etc) have different "default" properties.

using css, can make of elements want - acceptable options purely stylistic point of view. unfortunately, there discrepancy in styles when viewed in internet explorer - bane of many front-end developer's existence - can fix internet explorer issues investigation of issues & use conditional styles.

a couple of starting points on topics:

http://css-tricks.com/how-to-create-an-ie-only-stylesheet/

http://net.tutsplus.com/tutorials/html-css-techniques/9-most-common-ie-bugs-and-how-to-fix-them/

from semantic point of view, in html5 markup it's recommended build main menu using nav tag indicate you're building top-level site navigation structure. speaking, nav tags wrap ul, in turn wraps series of li's.

<nav id="main-menu">     <ul>         <li><a href="/">home</a></li>         <li><a href="/pagex">page x</a></li>         ...     </ul> </nav> 

more information available here: http://html5doctor.com/nav-element/


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -