Sidebar Informations/Codes a CSS Tutorial
have you ever wondered how can your sidebar float?? well, here’s a css tutorial!
look for the sidebar div, like for example:
<div id=”sidebar"> the sidebar is the div, if you see id, it means it’s with a hashtag + the div name, like:
<div id=”sidebar"> so it means the div in the css is= #sidebar! if it is
id class=”sidebar"> the div in the css is .sidebar!
but in your theme, sidebar could be anything! just search where you put your information, not the posts :)
Now, for the positioning, here’s an example of a floating sidebar:
look at the bolded word (fixed) it’s fixed, a lot of theme says there is a fixed sidebar there, it means floating, and if we say fixed, it means float. if you don’t want it to float, change the bolded text (fixed) into absolute.
DID YOU KNOW?
You can put a background image to your sidebar!!!
you just have to put the background image url in the BACKGROUNDHERE between the brackets, don’t remove the brackets otherwise the codes wouldn’t work.