Hello,
Is it possible to make a div part of the "background"? In other words,
I want it to always render if that part of the screen is showing, but
not create scrollbars under any circumstances. Furthermore, I want it
to obey the same positioning rules as a normal div. And (like a
background image) I don't want the presence of this div to shift other
elements over.
Cheers,
Evan 7 2220
On 2008-10-15, ch******@gmail.com <ch******@gmail.comwrote:
Hello,
Is it possible to make a div part of the "background"? In other words,
I want it to always render if that part of the screen is showing, but
not create scrollbars under any circumstances. Furthermore, I want it
to obey the same positioning rules as a normal div. And (like a
background image) I don't want the presence of this div to shift other
elements over.
Yes it is possible with some trickery. Here is an example: http://www.tidraso.co.uk/misc/backgroundDiv.html
On Oct 15, 5:56*pm, Ben C <spams...@spam.eggswrote:
Yes it is possible with some trickery. Here is an example:
http://www.tidraso.co.uk/misc/backgroundDiv.html
This is a great start! One issue, though: the box stays fixed to the
page when you scroll (at least, on FF3/win). This seems odd, even for
an absolutely-positioned div (as opposed to a fixed-position one.) Any
way to change this and make it scroll when the page scrolls?
Cheers,
Evan
On 2008-10-16, ch******@gmail.com <ch******@gmail.comwrote:
On Oct 15, 5:56*pm, Ben C <spams...@spam.eggswrote:
>Yes it is possible with some trickery. Here is an example:
http://www.tidraso.co.uk/misc/backgroundDiv.html
This is a great start! One issue, though: the box stays fixed to the
page when you scroll (at least, on FF3/win). This seems odd, even for
an absolutely-positioned div (as opposed to a fixed-position one.)
Everything is not what it appears-- you're scrolling #main, not the
viewport.
So you get the effect of background-attachment: fixed which I didn't
know wasn't what you wanted. The background div doesn't scroll because
it's not inside #main.
Any way to change this and make it scroll when the page scrolls?
Of course: http://www.tidraso.co.uk/misc/backgroundDiv2.html
On Oct 16, 9:32*am, Ben C <spams...@spam.eggswrote:
Of course:
http://www.tidraso.co.uk/misc/backgroundDiv2.html
Beautiful! I'll have to point you to the final design when it's
public. I'm really, really excited about how smooth this is. Thanks!
Cheers,
Evan
On Oct 16, 9:32*am, Ben C <spams...@spam.eggswrote:
Of course:
http://www.tidraso.co.uk/misc/backgroundDiv2.html
Hrm. This doesn't work in IE6 (surprise) and renders two scrollbars in
IE7 (that's a new one on me.) Works fine in Firefox 3, Opera 9,
Chrome, Safari 2.
I might just have to bite the bullet and load a separate stylesheet
for IE users. Sad.
On 2008-10-16, mo*************@gmail.com <mo*************@gmail.comwrote:
>
>On Oct 16, 9:32*am, Ben C <spams...@spam.eggswrote:
Of course:
>http://www.tidraso.co.uk/misc/backgroundDiv2.html
Hrm. This doesn't work in IE6 (surprise) and renders two scrollbars in
IE7 (that's a new one on me.) Works fine in Firefox 3, Opera 9,
Chrome, Safari 2.
I can't help you there. I only know CSS.
I might just have to bite the bullet and load a separate stylesheet
for IE users. Sad.
Well it's time they woke up and smelt the coffee.
On Oct 16, 2:13*pm, Ben C <spams...@spam.eggswrote:
Well it's time they woke up and smelt the coffee.
Got it working using a separate stylesheet and some ugly hacks. The
new CSS doesn't validate, but since it's only loaded if the user is
running IE, who cares? Besides, my XHTML is still valid. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Torbjørn Pettersen |
last post by:
I've got a table where I want some of the cells to use
a background image. The cells have variable height, so
I am using an image with a rather small height to fill up
the background of the cells,...
|
by: Charles Law |
last post by:
When displaying the Color Picker for a web page (in the VS IDE), Background
is listed on the System Colors tab.
Also,
Color.FromName("Background").IsNamedColor
returns True.
However,...
|
by: Just D. |
last post by:
Who knows what should we include into aspx file to show some image as a
background picture but only once at the top of the page? I don't want to add
the Image control because even if it uses a...
|
by: Maxwell2006 |
last post by:
Hi,
Using ASP.NET 2.0,
I have this tag in my asp page:
<td runat =server background="~/Images/Header2.gif"> </td>
The problem is when I run the page, the server side TD tag renders...
|
by: soulmach |
last post by:
Hello forum friends. I performed a search on this topic, but I couldn't find anything useful. I wasn't really sure what to search.
First I'll state what I am trying to do. I recently agreed to...
|
by: Miggiddy79 |
last post by:
Does any body know how to fix this.
I am trying to validate these html codes through the markup validation.
I have 5 error messages:
1) Line 114, Column 15: there is no attribute "BACKGROUND" ....
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |