473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

HELP : can't solve css templates PB !

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
Jul 21 '05 #1
6 1621
zefri wrote:
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
Jul 21 '05 #2
On Thu, 18 Nov 2004 14:49:24 -0800, mscir <ms***@access4less.net> wrote:
#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.
Jul 21 '05 #3
zefri wrote:
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.
Jul 21 '05 #4
Beauregard T. Shagnasty wrote:
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. :)
Jul 21 '05 #5
Neal wrote:
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.
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... :-)
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.
Jul 21 '05 #6
*mscir* <ms***@access4less.net>:

body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;
Do we need to discuss this *again*?
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%.
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Adam | last post by:
Hi, Me very confused. I have some XML that I want to convert to a more basic XML. I have put an example of what I have and what I want, I have used XSL to convert XML to HTML, but never this way. ...
1
by: David Goodyear | last post by:
At the moment im experimenting with ideas in C++ and would really like to solve the following, please please help. Sorry i dont even know what the subject is this would come under? :( Sorry if...
3
by: John Knoop | last post by:
Hi all! I would like to create a user control that handles an unlimited amount of templates. I suppose I would like to define the templates kind of like this: <mycontrol datakeyfield="model"...
7
by: Novice Computer User | last post by:
Hi. Can somebody PLEASE help. I have spent hours on this.. but I am a total novice and can't seem to figure it out. Here is a .php script. Right now, the minimum amount of time (i.e. duration)...
2
by: shapper | last post by:
Hello, I am for days trying to apply a XSL transformation to a XML file and display the result in a the browser. I am using Asp.Net 2.0. Please, could someone post just a simple code example,...
6
by: Hunk | last post by:
Hi I have a question on usage of forward declarations of templates. While searching through this group , people suggested using forward declarations and typedefs for templates as // in...
5
by: ryanoasis | last post by:
Working on a C++ assignment and I cant figure out the problems I am having w/ Templates and Subclasses. I know there are issues with templates and certain compilers so I am not sure what the...
3
by: jianqi.wang | last post by:
Hi, everyone, I started learning C++ two weeks ago. I am trying to play with template with constant expressions for template. So I wrote a very simple program as follows... There are three files:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.