making page longer/ content area bigger? |
making page longer/ content area bigger? |
lcfcchris |
Feb 21 2013, 04:55 PM
Post
#1
|
Group: Members Posts: 5 Joined: 23-January 13 Member No.: 18,513 |
Hi, I am currently making a page for my website, and I am having some trouble, I used a template, but am changing it quite a bit, I want to make a certain page longer go further down, however as I am self taught in html quite dodgy sometimes on some of the basics, I am struggling. I have tried '<div class="content" width="962" height="2270">' and have also tried '<div id="body" width="962" height="2270">' but none seem to work, I would prefer to change the height in html rather than css, in css the property is #body.content, I would rather use html as only want this page to have a larger content area!
Can you tell me what is best to do, sorry if this reads very confusing! Thanks for reading |
pandy |
Feb 21 2013, 05:00 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Try not using any height at all. It's not good to limit the hight of a box that contains text. It will expand to fit any content you pour in to it if nothing stops it.
If there is a height in the CSS it will override any height you try to set with HTML. You need to get rid of both in that case. |
Christian J |
Feb 21 2013, 06:04 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,652 Joined: 10-August 06 Member No.: 7 |
I have tried '<div class="content" width="962" height="2270">' and have also tried '<div id="body" width="962" height="2270">' but none seem to work, There are no such HTML attributes for DIV elements. You'll have to use CSS (or rather edit any CSS that limit the current width or height). QUOTE I would rather use html as only want this page to have a larger content area! You can put the page-specific CSS in an embedded STYLE element. See http://htmlhelp.com/reference/css/style-html.html#embedding |
pandy |
Feb 21 2013, 06:47 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
|
Lo-Fi Version | Time is now: 18th April 2024 - 12:00 PM |