I had a global CSS file and was inherited on all pages on my site. My page was divided into two parts, left and main body and I had a page where in I did not want the left part. So I needed to centralize my main body. My LEFT-NAV and ARTICLE-MAIN were adjusted using margins as shown in the below CSS
Image 1 - Left Navigation and Main Article |
This is my global CSS
This is the part of my page that needed adjustment
Since I was working with SharePoint, I did not have lot of flexibility in terms of designing (because it has many dependent and moving parts). So this is what I did :
Image 2 - Main Article only |
# Wiping out inherited CSS
# CSS Overriding styles
Aucun commentaire:
Enregistrer un commentaire