Gavin,
Yep I had the problem on a page on a site and I seem to remember it was
something to do with the !doctype declaration: In my case I had managed to
miss it off the offending page. Bloody frustrating and hard to find when all
the other pages were OK.
Regards
Giles
-Original
Been looking back at the archives and discovered this post from a while
back. Just wondering if your poking around came up with anything
interesting?
on Sat, 27 Sep 2003 James Ellis wrote
Hi everyone
Further to my presentation at the last Sydney meeting (on a Flash html
to (x)html
converter),
Hey List,
Just letting you know XP SP2 is out now.
It says its not for Single PC Use, although I just used it anyway.
Its 200MB Larger than the single PC use one - so big difference in
download.
http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/winxpsp2.mspx
I didnt notice any
Title: Image size--where should it be?
I am new to CSS and I am not sure if the image size (width and height) should appear in the HTML or be handled by CSS. Thank you.
Edd
If the image is used in the html than specifying height width is god
eg: img src=image.jpg height=10 width=20
If the image is used in css eg:
background: url(image.jpg);
than I have never seen the height and width specified (I dont even know
if you can)
--
Neerav Bhatt
http://www.bhatt.id.au
Well, the W3C validation page recommends using either!
Demonstrating valid CSS:
p
a href=http://jigsaw.w3.org/css-validator/;
img style=border:0;width:88px;height:31px
src=http://jigsaw.w3.org/css-validator/images/vcss;
alt=Valid CSS! /
/a
/p
Demonstrating valid XHTML:
p
a
Hi Edd
You can do it in both areas traditionally you would specify it in the
HTML, but as Patrick Griffiths demonstrates at HTML dog -
http://www.htmldog.com/articles/elasticdesign/demo/ - you can make your
images elastic if you have the dimensions in the CSS.
Cheer
Jeff Lowder
Accessibility
Is there really any reason to have it either place? Isn't it just extra
code that doesn't have to be there?
On Aug 12, 2004, at 6:29 PM, Joshua Street wrote:
Well, the W3C validation page recommends using either!
Demonstrating valid CSS:
p
a href=http://jigsaw.w3.org/css-validator/;
img
Edd,
Without sounding like fence sitting, the answer would be it depends on the
situation and personal opinion.
You probably should start by separating out images into two categories;
(1) decorative images
(2) content-based images
(1) A decorative image is one that is purely superficial -
G'day
I am new to CSS and I am not sure if the image size
(width and height) should appear in the HTML or be
handled by CSS. Thank you.
Width and height are valid attributes for images in HTML and XHTML, even in
the Strict flavour.
The only time I would specify it in CSS rather than
On Friday, Aug 13, 2004, at 09:59 Australia/Sydney, Edd Hale wrote:
I am new to CSS and I am not sure if the image size (width and height)
should appear in the HTML or be handled by CSS. Thank you.
Edd
Aside from the validity/informational/decorative issues, the inclusion
of width and height
On Fri, 13 Aug 2004 10:37:43 +1000, russ - maxdesign wrote:
You probably should start by separating out images into two categories;
(1) decorative images
(2) content-based images
I had the interesting moment the other day where I was putting a purely
decorative image into a page, but couldn't
How's this:
p { background: url(someimage.png) no-repeat left top; }
p:first-letter { padding-left: 15px; }
Works in IE5.5 onwards. 5 and below don't quite get it, I'm afraid. If 5
is your target, you may have to resort to using a sacrificial span
pspan/spanblah blah.../p
and the convoluted
p {
Hi
Unless there are some major benefits to Win IE's support of CSS (I doubt
it but please prove me wrong), the Web Standards Group list isn't the
best place to post information like this.
Cheers
James
Chris Stratford wrote:
Hey List,
Just letting you know XP SP2 is out now.
It says its not for
On Fri, 13 Aug 2004 03:33:02 +0100, Patrick H. Lauke wrote:
p { background: url(someimage.png) no-repeat left top; }
p:first-letter { padding-left: 15px; }
Would that work?
I was thinking of text-indent, but it only does the one line.
Works in IE5.5 onwards. 5 and below don't quite get it,
Hi Folks,
Is there any way (without ids or classes) to target the 3rd (for
example) column of a table to apply styles?
What I'm hoping for is something like...
table td[3] { text-align:right; }
... but I can't see anything like that in my references.
TIA
---
Justin French
Hi Justin,
Not well supported by IE but you can do with adjacent sibling selectors:
td+td+td { background: red;}
Only the third column would display a red background
Sample:
http://www.maxdesign.com.au/jobs/css/adjacent.htm
Russ
Hi Folks,
Is there any way (without ids or classes) to
On Aug 13, 2004, at 10:26 am, Lea de Groot wrote:
On Fri, 13 Aug 2004 10:37:43 +1000, russ - maxdesign wrote:
You probably should start by separating out images into two
categories;
(1) decorative images
(2) content-based images
I had the interesting moment the other day where I was putting a
Lea de Groot wrote:
[...]
Would that work?
I was thinking of text-indent, but it only does the one line.
[...]
Ooh, neat!
How does it figure out the height to leave for the image?
ah, when you said small graphic, i thought you meant something
*really* small. If it spans more than one line, this
You may want to look at COLGROUPs
http://www.w3.org/TR/REC-html40/struct/tables.html#h-11.2.4
Patrick H. Lauke
Justin French wrote:
Hi Folks,
Is there any way (without ids or classes) to target the 3rd (for
example) column of a table to apply styles?
What I'm hoping for is something like...
On Fri, 13 Aug 2004 04:49:04 +0100, Patrick H. Lauke wrote:
ah, when you said small graphic, i thought you meant something
*really* small. If it spans more than one line, this won't work,
obviously, and you should stick with another sacrificial element
instead.
Ah, no, sorry - not that
I thought I read somewhere that you can style tables by columns, just as you
can by rows and cells.In the article I read, the example showed TH
across the top of the table, and the first column of cells was styled using
some kind of column selector, not picking the first cell in each row.
22 matches
Mail list logo