I created a page, currently viewable at http://mywebpages.comcast.net/hmessi...sbuttons1.html
that displays a couple of buttons simulated with styles applied to <span>
tags. The buttons have two classes applied to them, one of which has the
sole effect of setting a fixed width of 125px.
Then I added a DOCTYPE tag at the top of the file. In IE6, this killed the
width and padding on the buttons, as seen at http://mywebpages.comcast.net/hmessi...sbuttons2.html
This happens for both strict and transitional DTDs. The HTML on the page
does pass the W3C HTML validator, and the CSS file passes the W3C CSS
validator.
I see that Firebird ignores the width and padding for both pages.
I'm gathering that there's no way to fix the width of inline buttons created
in this way. (The width and padding are restored if I change the <span> tags
to <div>, of course, but then I'm restricted to non-inline use of this
trick.) Is that right?
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel. 8 1970
Harlan Messinger wrote: <span> tags. fixed width of 125px.
Then I added a DOCTYPE tag at the top of the file. In IE6, this killed the width and padding on the buttons, as seen at http://mywebpages.comcast.net/hmessi...sbuttons2.html
The Doctype takes MSIE out of "Emulate the stupid mistakes that IE 5 made
mode", one of these was allowing width to be set on inline elements.
Its a pity MSIE doesn't yet support inline-block.
I see that Firebird ignores the width and padding for both pages.
Firebird doesn't have that IE 5.x bug.
I'm gathering that there's no way to fix the width of inline buttons created in this way. (The width and padding are restored if I change the <span> tags to <div>, of course, but then I'm restricted to non-inline use of this trick.) Is that right?
Yes, you probably want something from the horizontal section of
<http://css.maxdesign.com.au/listamatic/>
--
David Dorward <http://dorward.me.uk/>
"David Dorward" <do*****@yahoo.com> wrote in message
news:bt*******************@news.demon.co.uk... Harlan Messinger wrote:
<span> tags. fixed width of 125px.
Then I added a DOCTYPE tag at the top of the file. In IE6, this killed
the width and padding on the buttons, as seen at http://mywebpages.comcast.net/hmessi...sbuttons2.html
The Doctype takes MSIE out of "Emulate the stupid mistakes that IE 5 made mode", one of these was allowing width to be set on inline elements.
Its a pity MSIE doesn't yet support inline-block.
I see that Firebird ignores the width and padding for both pages.
Firebird doesn't have that IE 5.x bug.
I'm gathering that there's no way to fix the width of inline buttons created in this way. (The width and padding are restored if I change the <span> tags to <div>, of course, but then I'm restricted to non-inline
use of this trick.) Is that right?
Yes, you probably want something from the horizontal section of <http://css.maxdesign.com.au/listamatic/>
Nifty! Not as flexible, since not inlineable, but very nice. Also, it gives
me the answer to my question of the other day about the proper way to make
the bottom of a containing element clear the bottom of its floating
children--except that none of the browsers I have implements :after yet. At
least, the content="." part isn't showing up in any of them.
Quoth the raven named Harlan Messinger: I created a page, currently viewable at
http://mywebpages.comcast.net/hmessi...sbuttons1.html
....
David already explained about the size bug, but I have a question as
to why you need the cumbersome JavaScript for the rollover.
CSS can do that as well. See this site of mine; the buttons are just a
styled list. http://www.freezeblock.com/
(Please don't complain about the colors. The client's wife chose them,
and I'm not allowed to change. <g>)
--
-bts
-This space intentionally left blank.
"Beauregard T. Shagnasty" <a.*********@example.invalid> wrote in message
news:lU********************@twister.nyroc.rr.com.. . Quoth the raven named Harlan Messinger: I created a page, currently viewable at
http://mywebpages.comcast.net/hmessi...sbuttons1.html ...
David already explained about the size bug, but I have a question as to why you need the cumbersome JavaScript for the rollover.
CSS can do that as well. See this site of mine; the buttons are just a styled list.
Absolutely, for rollover only, :hover is fine. But you need script for
mousedown and mouseup, and as long as I was doing that anyway, it was no
trouble to do it for mouseover and mouseout as well. In fact, it would be
necessary if I were to implemented a more elaborate version as described in
my previous post. http://www.freezeblock.com/
(Please don't complain about the colors. The client's wife chose them, and I'm not allowed to change. <g>)
Harlan Messinger wrote: Absolutely, for rollover only, :hover is fine. But you need script for mousedown and mouseup, and as long as I was doing that anyway, it was no trouble to do it for mouseover and mouseout as well. In fact, it would be necessary if I were to implemented a more elaborate version as described in my previous post.
":active" (ok, mouseup is impossible)
AND
<http://www.pixy.cz/blogg/clanky/cssnopreloadrollovers/>
--
Anne van Kesteren
<http://www.annevankesteren.nl/>
"Anne van Kesteren" <ma**@annevankesteren.nl> wrote in message
news:bt**********@reader11.wxs.nl... Harlan Messinger wrote:
Absolutely, for rollover only, :hover is fine. But you need script for mousedown and mouseup, and as long as I was doing that anyway, it was no trouble to do it for mouseover and mouseout as well. In fact, it would
be necessary if I were to implemented a more elaborate version as described
in my previous post. ":active" (ok, mouseup is impossible)
Besides which, if you hit the Back button after reaching the next page, the
button will still be inset. AND
<http://www.pixy.cz/blogg/clanky/cssnopreloadrollovers/>
Rubs me the wrong way, somehow!
"Harlan Messinger" <h.*********@comcast.net> wrote in message
news:bt************@ID-114100.news.uni-berlin.de... "Anne van Kesteren" <ma**@annevankesteren.nl> wrote in message news:bt**********@reader11.wxs.nl... AND
<http://www.pixy.cz/blogg/clanky/cssnopreloadrollovers/>
Rubs me the wrong way, somehow!
Besides which, now that I've tried it, it's VERY slow in IE6, though it's
snappy enough in Opera and Firebird .
"Harlan Messinger" <h.*********@comcast.net> writes: Then I added a DOCTYPE tag at the top of the file.
[0] There is no 'DOCTYPE *tag*'.
Rule of thumb: if you think there is, omit it.
This happens for both strict and transitional DTDs.
Point-and-drool malware like MSIE, Mozilla and Opera typically doesn't
know or care about [0] either and just does something random whenever
pointy brackets are proceeded by exclamation marks.
I'm gathering that there's no way to fix the width of inline buttons created in this way. (The width and padding are restored if I change the <span> tags to <div>, of course, but then I'm restricted to non-inline use of this trick.) Is that right?
| 'width'
| [...]
| Applies to: all elements but non-replaced inline elements, [...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<http://localhost/rtfm/w3c/css2/visudet.html#propdef-width>
(or wherever you keep it :)
--
| ) 111010111011 | http://bednarz.nl/
-(
| ) Distribute me: http://binaries.bednarz.nl/mp3/aisha This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Holli Graham |
last post by:
Hi all,
I'm checking to see if anyone knows of a hack or trick or whatever to
get IE6 to keep a minimum width of a tableless page. I have the
entire page content wrapped in a container div...
|
by: Clemens Quoss |
last post by:
Hello,
I just encountered a strange thing when switching the doctype
on and off in the following html testpage (with IE 6.0):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
|
by: stan |
last post by:
I have code that produces 5 boxes across the screen width. So far I
have
only tested it in IE 6 and NS 8. It works in IE, but in NS I am not
able to
fit in the 5th box. I am using two...
|
by: Shadow Lynx |
last post by:
Consider this simple HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 STRICT//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>...
|
by: Louis. |
last post by:
Hello,
I have a cell that I making 200px wide with a style sheet. I am
setting the padding-left to 40px and the padding-right to 0px. I have
160x3 px gif in the cell. There should be no space...
|
by: mszanto |
last post by:
I've read a bunch of posts on this and none of the answers are
legitimate (IMHO) so I thought I'd throw it out there again.
Using the html code below, if you set the doctype to HTML 4.0, and...
|
by: Taras_96 |
last post by:
Hi everyone,
Can anyone tell me why the top paragraph block stretches across the
screen (as you would expect), while the bottom div doesn't stretch
across the entire screen? When I set the width...
|
by: =?Utf-8?B?d2NsYXJrZTEwMQ==?= |
last post by:
Hello all,
I've created the following ASP.NET code sample which, when rendered,
displays a 100% textbox within a single cell table. The problem is that
Internet Explorer (6 or 7) truncates the...
|
by: Christopera |
last post by:
Hello,
I have built a site that uses two divs, one verticle, and one horizontal as graphic style for the ite. The problem I am having is that if the browser is resized very small the divs are...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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: 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...
|
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: 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...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |