html - Grid Issue By Using <div> and <a> -


i have 1 silly question bootstrap grid system.

is okay use <a href="#" class="col-lg-4"> instead of <div class="col-lg-4">?

is because want create column-4 grid menu hyperlink.

basically, should hyperlink cover text not whole column if had styled width: 100%; height: 100%; inside <a> tag.

<div class="row">     <div class="col-lg-4">         <a href="#">menu 1</a>     </div> </div> 

after change code, should like

<div class="row">     <a href="#" class="col-lg-4">         menu 1     </a> </div> 

is best practice of using bootstrap? or have follow standard define bootstrap?

do , looking great: add class or style element. or add class "btn btn-default btn-block" use bootstrap button styles

<div class="row"> <div class="col-lg-4 text-center">     <a href="#" class=" btn-block">         menu 1     </a> </div> </div> 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -