Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

hide right column

Posted on 2013-05-11
6
Medium Priority
?
410 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 15

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 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 15

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
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…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

877 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