How to style main with CSS? Or do I also need to add an identifier or class to ...">Geek Answers HandbookHTML5 role = main as styleIf i have<div role="main"> </div> How to style main with CSS? Or do I also need to add an identifier or class to the <div> ?+4css html5redconservatory Jun 27 '12 at 23:49source share1 answerI would recommend adding an id or class. This is the most cross browser and efficient way.If you cannot do this, you will need to use the attribute selector: div[role="main"] +11︁ Jun 27 '12 at 23:50source shareMore articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1420370/or-clause-in-zend-db-update&usg=ALkJrhgiFSMzfUASFyecKgbn5YFc46_w2wWhat is the difference between __cause__ and __context__? - pythonPHP Undefined persistent error makes no sense - phphow to target or select a frame in the IE developer toolbar when analyzing a page with multiple frames? - htmlMagento adds product size and inventory attribute - magentoWhy is my Joomla! 2.5 Extension to install content from the admin directory on joomla, but not from the site directory? (Code Download Available) - xmlCharacter mapping as int without explicit cast - c ++Why does Object.create set my personal variables? - javascriptWhat is the difference between _imp and __imp? - dllEbean how to exclude String as a column - ebeanAll Articles
If i have
<div role="main"> </div>
How to style main with CSS? Or do I also need to add an identifier or class to the <div> ?
main
<div>
I would recommend adding an id or class. This is the most cross browser and efficient way.
If you cannot do this, you will need to use the attribute selector:
div[role="main"]