Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I tell an aside tag which side to go on?

Tags:

html

I have an html5 aside tag in a page I'm making. I can't find a way of telling it which side of the main article to be on?

like image 519
droidus Avatar asked May 22 '11 13:05

droidus


2 Answers

<aside> is just a semantic enhancement of general <div> container - it does not carry any presentational (graphic) info with itself.

You have to style it with CSS in order to put it to some specific place in your layout. For example, with float: left property.

like image 121
Ondřej Mirtes Avatar answered Sep 20 '22 22:09

Ondřej Mirtes


You have to do it through CSS, e.g. if you want your aside tags to be on the left you would do

aside { float:left; }
like image 24
user764799 Avatar answered Sep 17 '22 22:09

user764799