PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

CSS question: div cover another div on AJAX

 
 
dunnil
Guest
Posts: n/a
 
      4th Feb 2006
Hi,
I have a simple question, how to prevent a div to be covered by another
div?!?
When I use AJAX the footer div of my page cover the rendered div, how
should I prevent it?
I used both: position:fixed; and the position:relative;
The first cover some text from the bottom of page and the other does
not work always.

Thanks in advance,
- H

 
Reply With Quote
 
 
 
 
Murray
Guest
Posts: n/a
 
      4th Feb 2006
Show me your page, please.

--
Murray
--------------
MVP FrontPage


"dunnil" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I have a simple question, how to prevent a div to be covered by another
> div?!?
> When I use AJAX the footer div of my page cover the rendered div, how
> should I prevent it?
> I used both: position:fixed; and the position:relative;
> The first cover some text from the bottom of page and the other does
> not work always.
>
> Thanks in advance,
> - H
>



 
Reply With Quote
 
dunnil
Guest
Posts: n/a
 
      4th Feb 2006
Here is the CSS:
#footer {
width:100%;
background-color:#BFCFFF;
border-top:1px solid #d8efa6;
border-bottom:5px solid #C2C7DA;
padding-top:5px;
padding-bottom:5px;
position:relative;
bottom:0;
color:#000;
}

and the HTML:
<div id="header">
<h1>Results</h1>
</div>
<div id="content">
<center>
<%= ajax_bar_link('Result', 'result') %>
</center>
</div>
<br />
<div align="center" id="graph_div" style="display: none">
</div>

 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      4th Feb 2006
Can you post a link to the whole page, please?

--
Murray
--------------
MVP FrontPage


"dunnil" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Here is the CSS:
> #footer {
> width:100%;
> background-color:#BFCFFF;
> border-top:1px solid #d8efa6;
> border-bottom:5px solid #C2C7DA;
> padding-top:5px;
> padding-bottom:5px;
> position:relative;
> bottom:0;
> color:#000;
> }
>
> and the HTML:
> <div id="header">
> <h1>Results</h1>
> </div>
> <div id="content">
> <center>
> <%= ajax_bar_link('Result', 'result') %>
> </center>
> </div>
> <br />
> <div align="center" id="graph_div" style="display: none">
> </div>
>



 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      5th Feb 2006
dunnil wrote:
> Hi,
> I have a simple question, how to prevent a div to be covered by
> another div?!?
> When I use AJAX the footer div of my page cover the rendered div, how
> should I prevent it?
> I used both: position:fixed; and the position:relative;
> The first cover some text from the bottom of page and the other does
> not work always.
>
> Thanks in advance,
> - H


Well, I have been having lots of trouble/fun with this

The recommendation is:
Do not use position at all.

The new <div> will then postion under the others
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      5th Feb 2006
That code snippet has no div using or displaying a footer
- only a header and content div are set to display anything

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPa...3/Default.aspx
_____________________________________________


"dunnil" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| Here is the CSS:
| #footer {
| width:100%;
| background-color:#BFCFFF;
| border-top:1px solid #d8efa6;
| border-bottom:5px solid #C2C7DA;
| padding-top:5px;
| padding-bottom:5px;
| position:relative;
| bottom:0;
| color:#000;
| }
|
| and the HTML:
| <div id="header">
| <h1>Results</h1>
| </div>
| <div id="content">
| <center>
| <%= ajax_bar_link('Result', 'result') %>
| </center>
| </div>
| <br />
| <div align="center" id="graph_div" style="display: none">
| </div>
|


 
Reply With Quote
 
dunnil
Guest
Posts: n/a
 
      5th Feb 2006
footer div is the on the layout page (Something like MasterPage in
ASP.NET 2.0, I'm using Rails for this project)

<div id="footer">Copyright (c) 2006</div>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Games Explorer/Cover Art Question =?Utf-8?B?Y2FybHJpY2g=?= Windows Vista Games 2 11th Mar 2007 03:26 PM
Fax cover sheet question Jeff Needle Windows XP General 0 4th Jul 2006 05:51 PM
Professional / Cover Letter Question =?Utf-8?B?QW5pdGFO?= Microsoft Word Document Management 2 30th Jan 2006 04:32 PM
Sample fax cover pages missing in Fax Cover Page Editor George Windows XP Print / Fax 2 3rd Aug 2004 02:19 AM
PC hangs with cover on, doesnt hang with cover off! bizarre Colm Ward Computer Hardware 19 4th Mar 2004 04:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:08 AM.