Dynadot โ€” .com Transfer

How to make a page expand automatically?

Spacemail by SpaceshipSpacemail by Spaceship
Watch

hitman

Established Member
Impact
0
I'm having problems setting up a page in CSS, where, when we enter a text in the main part, it would expand automatically, bringing also the background of the left menu, the page borders and the footer.

The method I'm using right now consists of moving the footer lower, expanding the main part, the left menu background and the borders manually, but it is very stressing and time consuming doing it for more than 20 pages.

I have the impression that I am consuming extra time when there would be an easier solution for that. Is it possible to do such a thing? Could you explain to me how to do it please?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
what are you using to position everything? it soudns like you are setting the positionings of everything to absolute, if you want auto expanding you should put everything in a rwapper, with the hieght set to auto and set the positioning of everything to realitve,so it will be relative to everything else
 
0
•••
What I do is, I don't set the position for any of them and rather let the default occur (I believe it is fixed). If you look at my layout, http://www.jymweb.com/puredl, you see that it is a fluid layout and the content boxes expand vertically depending on the amount of text.
 
0
•••
What I have used may be a bit more complicated,

http://www.gwinnett.k12.ga.us/

But it works great. Check out the source, it's pretty well commented.
 
Last edited:
0
•••
If you want the bg to stay fixed add a class to your css file

background-attachment: fixed;
background-image: url(../images/bg-name.gif);
background-repeat: no-repeat;
background-position: left top;


to repeat the bg, often a 10x10 pixel image the just add:

background-image: url(../images/bg-name.gif);

(the ../ is a css hack so the image works across multi-browsers)

and when your totally confused or feel the need to regroup there is the W3Schools
http://www.w3schools.com/

:)
 
0
•••
Appraise.net
Spaceship
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back