Div expanding to fill whole screen

This is a discussion on Div expanding to fill whole screen within the Macromedia Dreamweaver forums in Adobe Tools category; I have a page http://www.atishameditation.co.uk/faq.html that uses some CSS to show / hide FAQ's. My problem is the FAQ's are in a <div> and when the bottom question is expanded the answer to that question fills the entire screen 'under the right column'. I want to have the questions restricted to the width of my content not including below the right column. Does anyone know of a way to do this, I don't think that <div> can be restricted by size? I have tried a <table> within the <div>, but this isn't allowed! Maybe there's something that I havn't thought ...

Go Back   Application Development Forum > Adobe Tools > Macromedia Dreamweaver

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-31-2008, 12:32 PM
Pakman36
Guest
 
Default Div expanding to fill whole screen

I have a page http://www.atishameditation.co.uk/faq.html that uses some CSS to
show / hide FAQ's.

My problem is the FAQ's are in a <div> and when the bottom question is
expanded the answer to that question fills the entire screen 'under the right
column'. I want to have the questions restricted to the width of my content not
including below the right column.

Does anyone know of a way to do this, I don't think that <div> can be
restricted by size? I have tried a <table> within the <div>, but this isn't
allowed!

Maybe there's something that I havn't thought about?

Reply With Quote
  #2  
Old 08-31-2008, 12:52 PM
Al Sparber - PVII
Guest
 
Default Re: Div expanding to fill whole screen

The right column is floated, but your main column is neither defined nor
floated. You need to introduce an adjacent DIV to contain your main content
(including the FAQ list) assign it a width, and then float it.

--
Al Sparber - PVII
http://www.projectseven.com
Fully Automated Menu Systems | Galleries | Widgets
http://www.projectseven.com/go/Elevators


"Pakman36" <webforumsuser@macromedia.com> wrote in message
news:g9eh2o$p6p$1@forums.macromedia.com...
>I have a page http://www.atishameditation.co.uk/faq.html that uses some CSS
>to
> show / hide FAQ's.
>
> My problem is the FAQ's are in a <div> and when the bottom question is
> expanded the answer to that question fills the entire screen 'under the
> right
> column'. I want to have the questions restricted to the width of my
> content not
> including below the right column.
>
> Does anyone know of a way to do this, I don't think that <div> can be
> restricted by size? I have tried a <table> within the <div>, but this
> isn't
> allowed!
>
> Maybe there's something that I havn't thought about?
>


Reply With Quote
  #3  
Old 08-31-2008, 01:38 PM
Pakman36
Guest
 
Default Re: Div expanding to fill whole screen

Hi Al, the FAQ page is working through the kindeness of PVII (great stuff).
Good to actually be in communication with the Gurus themselves!

What exactly do I need to do?, do I fix the right column so it only appears on
the right? The content is included in a div as far as I remember

Reply With Quote
  #4  
Old 08-31-2008, 04:13 PM
Al Sparber - PVII
Guest
 
Default Re: Div expanding to fill whole screen

See if this quick example helps:
http://www.projectseven.com/testing/customers/pakman/

--
Al Sparber - PVII
http://www.projectseven.com
Fully Automated Menu Systems | Galleries | Widgets
http://www.projectseven.com/go/Elevators


"Pakman36" <webforumsuser@macromedia.com> wrote in message
news:g9ekug$t1b$1@forums.macromedia.com...
> Hi Al, the FAQ page is working through the kindeness of PVII (great
> stuff).
> Good to actually be in communication with the Gurus themselves!
>
> What exactly do I need to do?, do I fix the right column so it only
> appears on
> the right? The content is included in a div as far as I remember
>


Reply With Quote
  #5  
Old 08-31-2008, 05:00 PM
Pakman36
Guest
 
Default Re: Div expanding to fill whole screen

Hi Al, wow that works great, I'm not sure where to start with the CSS code?

My main body (#content) is floated left and my right column is floated right,
you said that my main column is neither defined nor
floated? Would it not work if I fixed #content was fixed left rather than
floated? I still at the early stage of my CSS learning curve

Reply With Quote
  #6  
Old 08-31-2008, 05:22 PM
Al Sparber - PVII
Guest
 
Default Re: Div expanding to fill whole screen

"Pakman36" <webforumsuser@macromedia.com> wrote in message
news:g9f0qa$bhd$1@forums.macromedia.com...
> Hi Al, wow that works great, I'm not sure where to start with the CSS
> code?
>
> My main body (#content) is floated left and my right column is floated
> right,
> you said that my main column is neither defined nor
> floated?


There is no <div id="content"> in your document.


> Would it not work if I fixed #content was fixed left rather than
> floated?


No. Fixed would lock it in place and you'd lose whatever did not fit in the
window.


> I still at the early stage of my CSS learning curve


We all started somewhere. It takes time.

It would be best to redo the page if you can.


--
Al Sparber - PVII
http://www.projectseven.com
Fully Automated Menu Systems | Galleries | Widgets
http://www.projectseven.com/go/Elevators


Reply With Quote
  #7  
Old 09-02-2008, 11:07 AM
Pakman36
Guest
 
Default Re: Div expanding to fill whole screen

Hi Al
My other pages have a <div id="content"> I thought that my FAQ page had
e=because it's based on the same template?

If I add the ID into my div on the FAQ page would it then work? with the final
question not filling the right column area?



Reply With Quote
  #8  
Old 09-02-2008, 11:23 AM
Murray *ACE*
Guest
 
Default Re: Div expanding to fill whole screen

Is that div in an EDITABLE region of the Template? If so, it may not be
present any given page, depending on when the div was added to the Template
code, and when the child page was spawned.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Pakman36" <webforumsuser@macromedia.com> wrote in message
news:g9jkr4$e0p$1@forums.macromedia.com...
> Hi Al
> My other pages have a <div id="content"> I thought that my FAQ page had
> e=because it's based on the same template?
>
> If I add the ID into my div on the FAQ page would it then work? with the
> final
> question not filling the right column area?
>
>
>


Reply With Quote
  #9  
Old 09-02-2008, 03:45 PM
Pakman36
Guest
 
Default Re: Div expanding to fill whole screen

Hi Murray, good to here from you.

My <div> is in an editable region, that has been there since the template was
made. It's on all the other pages that have been based on the template, not
sure how it isn't on my FAQ page? I will try to add the div ID to that page to
see if it helps.
Pakman36

Reply With Quote
  #10  
Old 09-02-2008, 04:11 PM
Pakman36
Guest
 
Default Re: Div expanding to fill whole screen

Hi Murray and Al

I have added my 'div ID =content' to my FAQ page and it works great, the final
question is contained within the boundary of the content and doesn't overlap
the right border.

One further problem with the page is the <h2> are not appearing in the correct
color of #6D3424, but #454f6f which is the color of my <p> and my links. I'm
assuming it's some sort of CSS conflict, but can't figure where it's going
wrong?

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:19 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.