Solved

hide right column

Posted on 2013-05-11
6
384 Views
Last Modified: 2013-05-11
Hi ,
I have a template in dreamweaver with a right column. On my home page I would like this home page right column hidden and the text on middle column(main content) to use this space instead.

How do i hide a certain column for a page with a template?

body{
margin:0;
padding:0;
line-height: 1.5em;
background-color :#dadbe5;
text-align:center;


}
#maincontainer
{
  max-width:980px;
   margin:auto;
 background-color :white;
}

#MainContentArea{
        float: left;
      	width:56%;
		margin-left:2%;
		margin-right:2%;
		text-align:left;
}
	
	
#leftcolumn{
        float: left;
/*        background-color:Green;*/
        height:600px;;
		float: left;
		width: 20%; /*Width of left column in percentage*/
		background-color:#dadbe5;
		/* visibility:hidden;*/
}

#rightcolumn{
        float: left;
        background:rgb(204,255,51);
        color:Black;
/*		border:1px solid #000000;*/
        height:600px;;
		float: left;
		width: 19.8%; /*Width of right column in pixels*/
		color:Black;
		
}

Open in new window

0
Comment
Question by:jagguy
  • 3
  • 2
6 Comments
 
LVL 14

Expert Comment

by:Juan Ocasio
ID: 39157997
Why not omit the right column on the first page altogether?
0
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39158024
I think you want to manage the space but leave it blank in home page. So you can add a class for home like:

#rightcolumn{
        float: left;
        background:rgb(204,255,51);
        color:Black;
/*		border:1px solid #000000;*/
        height:600px;;
		float: left;
		width: 19.8%; /*Width of right column in pixels*/
		color:Black;
		
}

.homepagerightcol{
 visibility:hidden;
}

Open in new window

0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39158026
Call the class in home page like:
<div id="rightcolumn" class="homepagerightcol">
//Content
</div>

Open in new window

0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 14

Expert Comment

by:Juan Ocasio
ID: 39158051
jagadishdulal:  would your solution expand the main column?  I was under the impression   jagguy wanted that.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39158146
Instead of visibility, you need to use display:none to take it out of the flow.

Cd&
0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39158150
If you want to fullwidth main column than add more style in your homepagerightcol class

width: 0;

Open in new window

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question