473,473 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CSS POSITIONING FOR WHOLE LAYOUT OF THE PAGE

I am facing a trival problem with my web page.

I have two kind of web pages :

1. few pages has lesser content
2. few pages expands largely and they cover more area.

Now, I want to accomplish this objective. The page height should grow
for the pages with more content. But, the pages having less content
should have a pre-specified page height.

I tried many ways to position them using css, like I used % to specify
height. Few ways are working with mozilla/firefox but, few are working
improperly with IE6/7

I hope there are some standard methods available for these kind of
problem. I will be thankful to the readers who can help me to solve
this puzzle.

Thanks in advance,
regards,
-Ambastha

Feb 4 '07 #1
7 2212
On 2007-02-04, gr**********@gmail.com wrote:
I am facing a trival problem with my web page.

I have two kind of web pages :

1. few pages has lesser content
2. few pages expands largely and they cover more area.

Now, I want to accomplish this objective. The page height should grow
for the pages with more content. But, the pages having less content
should have a pre-specified page height.
Why would you do that? Even if the page contains very little
material, you don't know the size of my browser window or the size
of my fonts. If you fix the height, I may not be able to read even
the small amount of material on the page.
I tried many ways to position them using css, like I used % to specify
height. Few ways are working with mozilla/firefox but, few are working
improperly with IE6/7

I hope there are some standard methods available for these kind of
problem. I will be thankful to the readers who can help me to solve
this puzzle.

--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Feb 4 '07 #2
Gazing into my crystal ball I observed "Chris F.A. Johnson"
<cf********@gmail.comwriting in news:h0gh94-s7s.ln1
@xword.teksavvy.com:
>Now, I want to accomplish this objective. The page height should grow
for the pages with more content. But, the pages having less content
should have a pre-specified page height.

Why would you do that? Even if the page contains very little
material, you don't know the size of my browser window or the size
of my fonts. If you fix the height, I may not be able to read even
the small amount of material on the page.

I understand what the OP wants. For exmaple, say you have a page with a
header, left hand navigation, content and a footer. Longer pages have
the footer at the bottom of the window, or below the fold. Short pages
might have the footer right up next to the content. It might look a
little strange.

To the OP: try putting margin-top of your footer.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Feb 4 '07 #3
On 2007-02-04, Adrienne Boswell <ar****@yahoo.comwrote:
Gazing into my crystal ball I observed "Chris F.A. Johnson"
<cf********@gmail.comwriting in news:h0gh94-s7s.ln1
@xword.teksavvy.com:
>>Now, I want to accomplish this objective. The page height should grow
for the pages with more content. But, the pages having less content
should have a pre-specified page height.

Why would you do that? Even if the page contains very little
material, you don't know the size of my browser window or the size
of my fonts. If you fix the height, I may not be able to read even
the small amount of material on the page.


I understand what the OP wants. For exmaple, say you have a page with a
header, left hand navigation, content and a footer. Longer pages have
the footer at the bottom of the window, or below the fold. Short pages
might have the footer right up next to the content. It might look a
little strange.
I also thought this was what the OP wanted.
To the OP: try putting margin-top of your footer.
Isn't it min-height that's needed (to set a minimum height)?

Probably doesn't work in IE.
Feb 4 '07 #4
Rik
Ben C <sp******@spam.eggswrote:
>I understand what the OP wants. For exmaple, say you have a page with a
header, left hand navigation, content and a footer. Longer pages have
the footer at the bottom of the window, or below the fold. Short pages
might have the footer right up next to the content. It might look a
little strange.

I also thought this was what the OP wanted.
>To the OP: try putting margin-top of your footer.

Isn't it min-height that's needed (to set a minimum height)?

Probably doesn't work in IE.
Then again, height behaves like min-height in MSIE. So setting min-height,
and a height in an MSIE-only conditional would solve it.

--
Rik Wasmus
Feb 4 '07 #5
On 4 Feb, 19:37, Rik <luiheidsgoe...@hotmail.comwrote:
Ben C <spams...@spam.eggswrote:
I understand what the OP wants. For exmaple, say you have a page with a
header, left hand navigation, content and a footer. Longer pages have
the footer at the bottom of the window, or below the fold. Short pages
might have the footer right up next to the content. It might look a
little strange.
I also thought this was what the OP wanted.
To the OP: try putting margin-top of your footer.
Isn't it min-height that's needed (to set a minimum height)?
Probably doesn't work in IE.

Then again, height behaves like min-height in MSIE. So setting min-height,
and a height in an MSIE-only conditional would solve it.
Height doesn't behave as min-height in MSIE. For non-replaced block-
level elements, height could be described to behave as a minimum
height, but not 'min-height'. In this case MSIE behave as any other
browser.

http://www.w3.org/TR/REC-CSS2/visude...propdef-height

The properties min-height and max-height is used to specify a height
range. If you set 'height' explicit, you will override any range. You
can't say that a height should be both within a certain range, and
have an exact value.

http://www.w3.org/TR/REC-CSS2/visude...in-max-heights

In this case, just height might do it.

Feb 9 '07 #6
On 4 Feb, 16:29, group.rit...@gmail.com wrote:
I am facing a trival problem with my web page.

I have two kind of web pages :

1. few pages has lesser content
2. few pages expands largely and they cover more area.

Now, I want to accomplish this objective. The page height should grow
for the pages with more content. But, the pages having less content
should have a pre-specified page height.

I tried many ways to position them using css, like I used % to specify
height. Few ways are working with mozilla/firefox but, few are working
improperly with IE6/7
Have you tried

html, body { height: 100% }
..content { height: n% }

If/if not, can you post some code? I would like to see what's working,
and what's not.

Feb 9 '07 #7
On Feb 9, 5:32 am, "Roy A." <royarnes...@gmail.comwrote:
On 4 Feb, 16:29, group.rit...@gmail.com wrote:
I am facing a trival problem with my web page.
I have two kind of web pages :
1. few pages has lesser content
2. few pages expands largely and they cover more area.
Now, I want to accomplish this objective. The page height should grow
for the pages with more content. But, the pages having less content
should have a pre-specified page height.
I tried many ways to position them using css, like I used % to specify
height. Few ways are working with mozilla/firefox but, few are working
improperly with IE6/7

Have you tried

html, body { height: 100% }
.content { height: n% }

If/if not, can you post some code? I would like to see what's working,
and what's not.
Thanks to all of you for the suggestions.
i tried everything..
i used %, px, em and all..
also i tried with min-height concept..
But, everything is running fine with firefox. But,
the problem is with IE6,7 both :(
Right now, i have done some temporary arrangements.
But, am not satisfied with the behavior of IE.

Feb 14 '07 #8

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

Similar topics

9
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
36
by: Jack Hughes | last post by:
This argument has come up two or three times lately. We have a web standards document at our company that say "Use valid HTML 4; We don't recommend switching to DIV-based CSS-P for layout just...
3
by: Joni | last post by:
Hello NG, I am quite new to CSS and currently trying to change our sites to better use CSS for easier site style/layout configuration. I am having some problems and I couldn't find any good...
7
by: James Thornton | last post by:
I'm trying to make the transition from tables to CSS, and I need someone to explain how to achieve the following layout (understanding the concepts behind this layout will help me considerably in...
2
by: kevinC | last post by:
Hello, I know most of you are probably going seeing positioning:absolute; and centering in the title and saying, oh no! not again! Do a google search! Actually, I've found many helpful...
1
by: Charles Harrison Caudill | last post by:
with tables there is a clean and algorithmic way to organize things, but with css which is, once you get it working, much cleaner, I have to tweak and patch and hope and pray and curse before...
1
by: Shawn Wilson | last post by:
I am trying to do away with tables, and am trying to learn how to position things with CSS just how I want them to look. The problem I've run into is that one design in particular seems imposible...
2
by: Johnson Smith | last post by:
Question is related to ASP.Net and controlling the position of these controls. I am using html table to placce my web controls. I am displaying same datagrid and calendar controls at clicks of...
4
by: Eric Lindsay | last post by:
I seem to be running into problems when I try viewing pages at my site http://site.sheltersrus.com.au/ using this stylesheet http://site.sheltersrus.com.au/sheltersrus.css in Internet Explorer 6. ...
14
by: Fistro | last post by:
I'm trying to find a design that would allow me to build web pages without having to worry about compatibility issues (not too much, in any case,,,) I've came across this CSS layout technique:...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.