Click here to Skip to main content
15,921,837 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: More CSS and DIVs Pin
Megan Forbes2-Jun-06 12:00
Megan Forbes2-Jun-06 12:00 
GeneralShog & Guffa Pin
Megan Forbes3-Jun-06 21:27
Megan Forbes3-Jun-06 21:27 
QuestionPDF on the fly asp.net 2.0? Pin
Brent Lamborn1-Jun-06 9:10
Brent Lamborn1-Jun-06 9:10 
AnswerRe: PDF on the fly asp.net 2.0? [modified] Pin
George L. Jackson1-Jun-06 11:12
George L. Jackson1-Jun-06 11:12 
QuestionDate Format Issue ? Pin
Kamal.Afridi1-Jun-06 1:32
Kamal.Afridi1-Jun-06 1:32 
AnswerRe: Date Format Issue ? Pin
jcrussell1-Jun-06 15:44
jcrussell1-Jun-06 15:44 
AnswerRe: Date Format Issue ? Pin
JackIsMe7774-Jun-06 18:26
JackIsMe7774-Jun-06 18:26 
QuestionPlacing DIVs Pin
Dario Solera1-Jun-06 0:01
Dario Solera1-Jun-06 0:01 
I have this simple page with 4 main DIV tags.
The first one should act as a header, and it must be 100% wide (with 4px left and right margins). The last one should act as a footer.
The other two should be placed between the "header" and "footer" DIVs, the first on the left and the second on the right of the page. The two must occupy the 100% of the page. In other words I need a DIV on the left for a menu and a wider div on the right for the contents. The "menu" DIV should be 180px wide.

I set the "menu" and "content" DIVs like this:
#SidebarDiv {
width: 180px;
float: left;
}
#MainDiv {
width: 78%;
float: left;
}


I used 78% because I want the DIVs occupying the whole page width. Obviously when the width of the browser increases, there is some blank space on the right of the "content" DIV. When it decreases the "content" div falls down, under the "menu" DIV.

So the question is: how can I make the two DIVs always occupy the whole page width, handling different window widths, all with CSS?

Thanks. Smile | :)

______________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA] and the ScrewTurn Software experiment

AnswerRe: Placing DIVs Pin
George L. Jackson1-Jun-06 4:50
George L. Jackson1-Jun-06 4:50 
GeneralRe: Placing DIVs Pin
Dario Solera1-Jun-06 21:54
Dario Solera1-Jun-06 21:54 
AnswerRe: Placing DIVs Pin
Shog92-Jun-06 10:28
sitebuilderShog92-Jun-06 10:28 
AnswerRe: help me please with row colors (newbie) Pin
JackIsMe7771-Jun-06 0:31
JackIsMe7771-Jun-06 0:31 
GeneralRe: help me please with row colors (newbie) Pin
ransomed_guy1-Jun-06 0:42
ransomed_guy1-Jun-06 0:42 
QuestionShould i use placeholders? Pin
il_manti31-May-06 22:18
il_manti31-May-06 22:18 
GeneralRe: Should i use placeholders? Pin
User 17164921-Jun-06 7:22
professionalUser 17164921-Jun-06 7:22 
QuestionTable Cells "OnClick Event" Pin
Soroush_Sarabi31-May-06 21:37
Soroush_Sarabi31-May-06 21:37 
AnswerRe: Table Cells "OnClick Event" Pin
huguesgauthier1-Jun-06 1:48
huguesgauthier1-Jun-06 1:48 
QuestionHow make Menu Drop Down in PHP ? [modified] Pin
sovanngold31-May-06 19:13
sovanngold31-May-06 19:13 
AnswerRe: How make Menu Drop Down in PHP ? Pin
Steve Echols31-May-06 21:48
Steve Echols31-May-06 21:48 
Questionobject reference not set to instance of an object Pin
uglyeyes31-May-06 16:35
uglyeyes31-May-06 16:35 
QuestionDisable scrolling in an iframe Pin
GalRatz31-May-06 8:06
GalRatz31-May-06 8:06 
QuestionHow to extract a pattern form a html file Pin
vikramjparekh31-May-06 5:07
vikramjparekh31-May-06 5:07 
AnswerRe: How to extract a pattern form a html file Pin
Paddy Boyd31-May-06 5:37
Paddy Boyd31-May-06 5:37 
AnswerRe: How to extract a pattern form a html file Pin
minhpc_bk31-May-06 15:55
minhpc_bk31-May-06 15:55 
QuestionMaskedTextBox in ASP.NET 2.0? Pin
Brent Lamborn31-May-06 4:17
Brent Lamborn31-May-06 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.