Solved

hide right column

Posted on 2013-05-11
6
385 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to format numbers and letters in nested lists 5 34
Word, Excel, Access icons 4 17
Unexpected End of File 11 27
I'm a Human captcha checkbox 13 23
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

820 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