0

hello friend,
i have a div content and a sidebar content take 60% and sidebar take around 40% the
thsi my css

#sidebar {
        clear: none;
        float: left;
        margin-left: 1.4492%;
        width: 34.7826%;
        display: block;
    }
    #content {
        clear: both;
        float: left;
        margin-left: 0;
        width: 63.7681%;
        display: block;
    }

so in others pages they will not be a side bar i dont wanna keep content div on left i want it ti be in center of the pages

3
Contributors
4
Replies
21
Views
2 Years
Discussion Span
Last Post by tdrosiadis
0

You can put inside ur main css file two classes names,lets say, .fullwidth {width:100% !important;} and .hidediv {display:none !important;}. In the pages that you do not want sidebar to be shown you can add to your sidebar div the .hidediv class and to your content div add the class .fullwidth . This will do the trick for you. Its better performance-wise not to have multiple csd files.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.