The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> making page longer/ content area bigger?
lcfcchris
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 21 2013, 05:00 PM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,881
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 21 2013, 06:04 PM
Post #3


.
********

Group: WDG Moderators
Posts: 8,462
Joined: 10-August 06
Member No.: 7



QUOTE(lcfcchris @ Feb 21 2013, 10:55 PM) *

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

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 21 2013, 06:47 PM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,881
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Feb 22 2013, 12:04 AM) *

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).


Yeah, that too. tongue.gif
Sorry, didn't notice it was a DIV. blush.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 6th July 2020 - 12:21 AM