HighDots Forums  

HELP : can't solve css templates PB !

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss HELP : can't solve css templates PB ! in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
zefri
 
Posts: n/a

Default HELP : can't solve css templates PB ! - 11-18-2004 , 05:09 PM






Hi,

I want to create a simple css template like this :
http://www.alsacreations.com/article...les/g_fixe.htm

But i've got a problem : the footer doesn't follow if contents(menu or
center) grow !

- Try to fill the menu with text so that its content is bigger than the
content of the center (right block).
you can see that the footer doesn't follow...!!!

-on the contrary, if the content of center is bigger than the content of
menu, footer follow as expected.

How to solve this ?!

Thanks a lot for any help !!

Regards,

Zefri



Reply With Quote
  #2  
Old   
mscir
 
Posts: n/a

Default Re: HELP : can't solve css templates PB ! - 11-18-2004 , 05:49 PM






zefri wrote:

Quote:
Hi,

I want to create a simple css template like this :
http://www.alsacreations.com/article...les/g_fixe.htm

But i've got a problem : the footer doesn't follow if contents(menu or
center) grow !
<snip>

Try this. Also use units everywhere, e.g. body margin and padding.

body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;
margin: 0;
padding: 0;
}

#conteneur {
position: absolute;
width: 750px;
left: 50%;
margin-left: -375px;
background-color:#CCCCFF;
}

#header {
height: 100px;
width: 100%;
background-color: #99CCCC;
}

#gauche {
position: relative;
float: left;
width: 150px;
background-color: #FFAABB;
}

#centre {
position: relative;
float: left;
width: 600px;
background-color:#9999CC;
}

#pied {
height: 30px;
width: 100%;
background-color: #99CC99;
}

Mike


Reply With Quote
  #3  
Old   
Neal
 
Posts: n/a

Default Re: HELP : can't solve css templates PB ! - 11-18-2004 , 06:24 PM



On Thu, 18 Nov 2004 14:49:24 -0800, mscir <mscir (AT) access4less (DOT) net> wrote:

Quote:
#gauche {
position: relative;
float: left;
width: 150px;
background-color: #FFAABB;
}
I recommend choosing an ID which reflects the content, not the location on
the rendered page. Same with #centre.


Reply With Quote
  #4  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: HELP : can't solve css templates PB ! - 11-18-2004 , 06:45 PM



zefri wrote:
Quote:
Hi,

I want to create a simple css template like this :
http://www.alsacreations.com/article...les/g_fixe.htm
And change this:

body {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;

...to this:

body {
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;

http://www.xs4all.nl/~sbpoley/webmatters/verdana.html

--
-bts
-This space intentionally left blank.


Reply With Quote
  #5  
Old   
Neal
 
Posts: n/a

Default Re: HELP : can't solve css templates PB ! - 11-18-2004 , 07:02 PM



Beauregard T. Shagnasty wrote:

Quote:
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;

Don't forget the } !!

Compare to this, however.

font-family: Helvetica, Arial, sans-serif;

Here, Mac users who have both Arial and Helvetica on the machine get
Helvetica, which many have described as a superior font (off of which
Arial was crudely based, if my memory serves me). Windows AFAIK never has
Helvetica anyhow, and even if it did it'd probably be better than Arial.

Needless to say, if my facts are in error, someone's sure to correct me. I
hope.


Reply With Quote
  #6  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: HELP : can't solve css templates PB ! - 11-18-2004 , 08:30 PM



Neal wrote:
Quote:
Beauregard T. Shagnasty wrote:

body {
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;

Don't forget the } !!
Of course. Note I reposted only the first three lines of the body css
to show the two changes I recommended.

Quote:
Compare to this, however.

font-family: Helvetica, Arial, sans-serif;

Here, Mac users who have both Arial and Helvetica on the machine
get Helvetica, which many have described as a superior font (off of
which Arial was crudely based, if my memory serves me). Windows
AFAIK never has Helvetica anyhow, and even if it did it'd probably
be better than Arial.
Yeah. I keep forgetting about those Mac people... :-)

Quote:
Needless to say, if my facts are in error, someone's sure to
correct me. I hope.
None from me.

--
-bts
-This space intentionally left blank.


Reply With Quote
  #7  
Old   
Christoph Paeper
 
Posts: n/a

Default Re: HELP : can't solve css templates PB ! - 11-18-2004 , 09:32 PM



*mscir* <mscir (AT) access4less (DOT) net>:
Quote:
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;
Do we need to discuss this *again*?

Quote:
position: absolute;
width: 750px;
left: 50%;
margin-left: -375px;
I'd be very careful with negative margins (and pixel sizes).

--
Useless Fact #9:
Percentage of Africa that is wilderness: ca. 28%.
Percentage of North America that is wilderness: ca. 38%.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.