Solved

hide right column

Posted on 2013-05-11
6
382 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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 learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now