Hey there,
thank you for all your replies. I might have chosen a layout that is
more complex than what I know at the moment, but that is usually my
strategy with any new project. Otherwise, how am I going to learn. So
far I have been able to figure anything out. Be it thanks to Googling
stuff or just by playing around with it.
In case you do want to give any hints, I left the stylesheet content
at the end. I had tried playing around with the width, but so far
unsuccessful, hence me posting here...
Thanks again! Happy to learn new stuff every day!
Sarita
body {
text-align: center;
background-color: #D5D0B0;
margin-top:10px;
margin-bottom:10px;
color:#666666;
}
A:link {
COLOR: #C86000; text-decoration: none
}
A:visited {
COLOR: #C86000; text-decoration: none
}
A:active {
COLOR: #C86000; text-decoration: none
}
A:hover {
COLOR: #C86000; text-decoration: underline
}
#page_wrapper {
margin-left: auto;
margin-right: auto;
width: 760px;
text-align: left;
background: #FFFFFF url('../img/content_bg.gif' ) top left repeat-y;
}
#page_header {
height: 140px;
background: #FFFFFF url('../img/header.jpg') bottom left no-repeat;
clear: both;
}
#page_header h1 {
padding-top:50px; padding-left:15px;
margin:0px;
font-family: verdana;
font-size: 24px;
color: #FBD539;
line-height:26px;
letter-spacing:-1px;
}
#page_header h2 {
margin:0px;
padding-left:15px;
font-family: verdana;
font-size: 12px;
color: #D5D0B0;
line-height:22px;
}
#menu_bar {
margin:0px;
padding:0px;
border:0px dashed #cccccc;
height:31px;
clear:both;
background: #FFFFFF url('../img/menu_bg.gif') bottom left no-repeat;
}
#content_wrappe r {
margin-top:10px;
margin-bottom:10px;
margin-left:10px;
margin-right:10px;
border:0px dashed #FFFFFF;
}
#center {
margin-left:160px;
margin-right:160px;
border:0px dashed #cccccc;
}
#center h3 {
margin-top:0px;
margin-bottom:5px;
font-family: verdana, arial, sans-serif;
font-size: 11px;
color: #ffffff;
padding:4px;
border: 1px solid #425227;
background-color: #739240;
}
#center p {
margin-top:5px;margin-bottom:15px;
padding:4px;
font-family: verdana, arial, sans-serif;
font-size: 11px;
line-height: 16px;
}
#left_side {
float: left;
width:140px;
border:0px dashed #cccccc;
}
#left_side h3 {
margin-top:0px;
margin-bottom:5px;
font-family: verdana, arial, sans-serif;
font-size: 11px;
color: #ffffff;
padding:4px;
border: 1px solid #425227;
background-color: #739240;
}
#left_side p {
margin-top:5px;margin-bottom:15px;
padding:4px;
font-family: verdana, arial, sans-serif;
font-size: 11px;
line-height: 16px;
color: #666666;
}
#right_side {
float: right;
width:140px;
border:0px dashed #cccccc;
}
#right_side h3 {
margin-top:0px;
margin-bottom:5px;
font-family: verdana, arial, sans-serif;
font-size: 11px;
color: #ffffff;
padding:4px;
border: 1px solid #425227;
background-color: #739240;
}
#right_side p {
margin-top:5px;margin-bottom:15px;
padding:4px;
font-family: verdana, arial, sans-serif;
font-size: 11px;
line-height: 16px;
color: #666666;
}
#page_footer {
height: 60px;
background: #425227;
clear: both;
border-left: 1px solid #425227;
border-right: 1px solid #425227;
border-bottom: 1px solid #425227;
}
#page_footer p {
padding-top:15px;
text-align:center;
font-family: verdana;
font-size: 10px;
line-height:14px;
color:#D5D0B0;
}
#page_footer A:link {
COLOR: #FBD539; text-decoration: none
}
#page_footer A:visited {
COLOR: #FBD539; text-decoration: none
}
#page_footer A:active {
COLOR: #FBD539; text-decoration: none
}
#page_footer A:hover {
COLOR: #FBD539; text-decoration: underline
}
#navcontainer ul {
padding-left: 0;
margin-left: 0;
margin-top:0px;
background-color: #C86000;
background: url('../img/bar.jpg') top right no-repeat;
color: White;
float: left;
width: 100%;
font-family: verdana, arial, helvetica, sans-serif;
font-size:12px;
font-weight:bold;
}
#navcontainer ul li { display: inline; }
#navcontainer ul li a {
padding-top: 5px;
padding-bottom: 7px;
padding-left:10px;
padding-right:10px;
background-color: transparent;
color: White;
text-decoration: none;
float: left;
border-right: 1px solid #BD620E;
}
#navcontainer ul li a:hover {
background-color: #DE6B02;
background: url('../img/bar_bg_hover.gi f') bottom left repeat-x;
color: #fff;
}
#linklist {
padding-left: 0;
margin-left: 0;
border-bottom: 1px solid #D1D9C4;
width: 140px;
}
#linklist li {
list-style: none;
margin: 0;
line-height:20px;
border-top: 1px solid #D1D9C4;
font-family:verdana;
font-size:10px;
}
#linklist li a { text-decoration: none; }
..thumbnail_lef t {
float:left;
margin-right:10px;
margin-bottom:5px;
border:0px;
}
..thumbnail_rig ht {
float:right;
margin-left:10px;
margin-bottom:5px;
border:0px;
}
-----------------------------------
On Mar 6, 9:10 pm, "Jukka K. Korpela" <jkorp...@cs.tu t.fiwrote:
Scripsit Sarita:
this might sound stupid, but I got a really nice homepage template
which unfortunately is a 3-Column Fixed Width CSS format.
Using a template that you cannot manage is not really a sign of stupidity
but ill-advised. It's better to use simple layout that you can handle than
to work with someone else's design and run into trouble when you wish to
modify it.
Now I don't
have any content for the right column and would like the middle column
just to use up that space instead.
Well, just remove the right column. Make sure to check that the width
setting for the entire table, if set, is consistent with the column width
settings, if set.
As a kludge, you can use CSS to suppress the third column (but the results
are unpredictable if this makes the sum of column widths different from the
setting of the total width):
td:first-child + td + td { display: none; }
Doesn't work on IE 6 or earlier, or on IE 7 in Quirks mode. Well, you could
add class attributes, say class="third", to the cells of the third column
and use a class selector:
td.third { display: none; }
which works on almost any CSS-enabled browser. But why bother, when you can
simply remove the column?
--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/