473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Firefox css div tags issue

Hello,

Can anyone help with this, I have a div tag :

<div style="overflow:scroll; overflow-x:hidden; height=315px">
In IE this renders the DIV fine, it is 315 pixels high and has a
vertical scroll bar but no horizontal scroll bar, if firefox though it
ignores the height and makes the div just big enough to show its
contents and it also shows the horizontal scroll bar when it is
supposed to be hidden, wouldn't it be nice if all browsers rendered
html and css in exactly the same way!

Thanks,

Paul

Jul 21 '05 #1
6 27410
pa**********@hotmail.com wrote:
<div style="overflow:scroll; overflow-x:hidden; height=315px">


scroll is the default value for the overflow property, no point in
specifying it. In CSS 2.1 there is no such property as overflow-x.

--
Spartanicus
Jul 21 '05 #2
pa**********@hotmail.com wrote:
<div style="overflow:scroll; overflow-x:hidden; height=315px">
For starters, you could write valid css.

height:315px
wouldn't it be nice if all browsers rendered html and css in exactly
the same way!


Oh yes. Unfortunately, there is Internet Explorer.
Jul 21 '05 #3
Spartanicus <me@privacy.net> wrote:
pa**********@hotmail.com wrote:
<div style="overflow:scroll; overflow-x:hidden; height=315px">


scroll is the default value for the overflow property, no point in
specifying it.


Visible is the default. See
http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow

Steve

Jul 21 '05 #4
If I remove style="overflow:scroll; then is has no scroll bars and it
streches to show the whole content, over 315 pixels high.

If overflow-x:hidden; is IE specific then fair enough, but the main
problem is that firefox is ignoring the height.

Jul 21 '05 #5
Thanks Martin, I feel stupid, its always the smallest things.

Jul 21 '05 #6
pa**********@hotmail.com wrote:
Can anyone help with this, I have a div tag :

<div style="overflow:scroll; overflow-x:hidden; height=315px">

In IE this renders the DIV fine, it is 315 pixels high and has a
vertical scroll bar but no horizontal scroll bar, if firefox though it
ignores the height and makes the div just big enough to show its
contents and it also shows the horizontal scroll bar when it is
supposed to be hidden, wouldn't it be nice if all browsers rendered
html and css in exactly the same way!


FF is applying your CSS correctly.

overflow-x is a Microsoft invention and isn't part of the CSS 2.x
specification. It is part of the CSS3 proposal and will be supported
in future versions of Firefox (support added in Mozilla 1.8a4).

height=315px is just a syntax error.

So after discarding the above what Firefox sees is just <div
style="overflow:scroll;"> and it implements that perfectly by drawing
scrollbars.

Steve

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nils Weisensee | last post by:
Hello! For some reason, Internet Explorer is displaying one CSS-layer on my website http://home.arcor.de/nilsweisensee/links.html slightly differently than Firefox, Opera, Konqueror and Safari...
6
by: michaelzap | last post by:
I can't seem to remove some extra margin/padding from my design on this site: http://www.kyowa-usa.com/ IE displays it properly (no space between the menus and other elements and the outer...
4
by: andersoj | last post by:
I have a page that has some required field validators created in the aspx, and other validators created in the Page_Load event. In IE, all validation works as expected. In Firefox, ASPX...
2
by: David Housman | last post by:
Hello, Though this came up in the act of learning js, I'm not actually sure this is a js question. I can write and call a function to update the src of an image. But in Firefox the image quickly...
3
by: töff | last post by:
On my site http://www.sjcga.com I have a javascript-generated navigation menu in the top right corner. The menu works great in IE and Opera ... but in FireFox, on the 1st click, the menu jumps...
1
by: sassankz | last post by:
Dear All, Please take a look at this site: www.bartarcard.com in IE and FireFox. I don't know what is wrong with my .css file that The FireFox doesn't load images and colors like IE. Regards,...
3
by: Jake G | last post by:
Ok. I have figured out my whole script except how to make it work in FF. It is a script that lets a user know how many characters they have left for a textbox. Here is the code, is anyone savy...
0
by: KUTTAN | last post by:
In my home page I am showing a small part of my product’s description. I am achieving this by using “SUBSTRING” function in sql server stored prodedure. ...
1
by: Richardsx | last post by:
Hi, I've just got an answer from one of your forums so I've signed up to this site and thought I might as well ask if somebody can help me with a layout issue I have with a new site I've built. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.