Re: [css-d] Vertically centering text in a paragraph

2009-04-13 Thread designer
Tim:  I know you said that you didn't want to go the table way, but a table 
in this case is perfectly acceptable, insofar as the relationship between 
the image and text is a tabular one. I wouldn't hesitate to use a table 
here, so long as it's marked up properly.

Bob


- Original Message - 
From: Tim Dawson t...@ramasaig.com
To: css-d@lists.css-discuss.org
Sent: Monday, April 13, 2009 9:45 AM
Subject: [css-d] Vertically centering text in a paragraph



 I'm working on a site which has several images on the page (300x225px). 
 Each
 image has some descriptive text alongside, which generally is not as high 
 as the
 image.  My client would like the text vertically centred on the image.

 http://www.mull-bed-and-breakfast.co.uk/newcrofts/self-catering.php

 CSS deliberately seems to avoid a v-align capability in paragraphs.  I 
 realise I
 could introduce padding, but that would have to be tailored for every 
 piece of
 text. Tables allow v-align in cells, I know, but I don't want to go that 
 route
 either  Is there a better way, please ?

 Tim Dawson

 -- 
 Tim Dawson
 Maolbhuidhe
 Fionnphort
 Isle of Mull  PA66 6BP

 01681 700718
 __
 css-discuss [cs...@lists.css-discuss.org]
 http://www.css-discuss.org/mailman/listinfo/css-d
 List wiki/FAQ -- http://css-discuss.incutio.com/
 List policies -- http://css-discuss.org/policies.html
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

 


__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS Menu Over Many Web Pages in a Site

2009-04-05 Thread designer
Wayne,

I have used Dreamweaver libraries for some years now, and found them 
invaluable.  Google dreamweaver libraries and you'll get lots of hits. 
Here's one:

http://webdesign.about.com/od/dreamweaverhowtos/a/aa090406.htm

(picked at random).

Libraries will change your life!

Bob
www.gwelanmor-internet.co.uk


- Original Message - 
From: Wayne Wickson webde...@gmail.com
To: css-d@lists.css-discuss.org
Sent: Saturday, April 04, 2009 11:20 PM
Subject: [css-d] CSS Menu Over Many Web Pages in a Site



 I'm new to CSS, but a conceptual problem has occurred to me.  If this is a
 stupid question, please humour me.   :-)
 Lets assume I am designing a web site of one hundred pages.  I design a
 horizontal dropdown menu which links to each of the one hundred pages.  So
 each page is available from each of the other pages.  I need to add a new
 page or several pages.  Is there a way, using only CSS, to easily change 
 the
 menu on each of the one hundred pages on the site without actually using 
 an
 editor and modifying the one hundred lists one list at a time?  Thanks for
 any help I receive.
 __
 css-discuss [cs...@lists.css-discuss.org]
 http://www.css-discuss.org/mailman/listinfo/css-d
 List wiki/FAQ -- http://css-discuss.incutio.com/
 List policies -- http://css-discuss.org/policies.html
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

 


__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Float problem in Firefox

2009-03-29 Thread designer
Try this:

http://www.alistapart.com/articles/multicolumnlists

Bob


- Original Message - 
From: David Laakso da...@chelseacreekstudio.com
To: Gaurav Sharma sharmal...@gmail.com
Cc: css-d css-d css-d@lists.css-discuss.org
Sent: Sunday, March 29, 2009 12:10 PM
Subject: [css-d] Float problem in Firefox


 
 Gaurav Sharma wrote:
 Hi,

 I have a small problem with float in Mozilla.

 http://gauravsharma.uuuq.com

  I
 need two lists side-by-side. Please help.

 Thanks and regards,
 Gaurav Sharma.
   
 

 css-discuss [cs...@lists.css-discuss.org]
 http://www.css-discuss.org/mailman/listinfo/css-d
 List wiki/FAQ -- http://css-discuss.incutio.com/
 List policies -- http://css-discuss.org/policies.html
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
 


__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Site check: List Item menu in different browsers

2009-03-03 Thread designer
Hi Scott,

It seems to be a function of text size. It works at some settings (small), 
but falls apart as you enlarge.  Your text height is set in ems, whereas 
your margins etc are in pixels.

HTH,

Bob


- Original Message - 
From: scott.blanch...@sungard.com
To: css-d@lists.css-discuss.org
Sent: Tuesday, March 03, 2009 4:40 PM
Subject: [css-d] Site check: List Item menu in different browsers



 My site is located here: http://www.eco-tune.net
 http://www.eco-tune.net/



 The menu at the top should look like it does in this image:

 http://www.eco-tune.net/images/menu.jpg



 As you can see from the image, their should be a 1 pixel white separator
 between the top menu and the submenu beneath it.



 I've tested it in Chrome, Firefox 3 and IE 7 from my work PC and it
 looks perfect (just like in the picture above). However, from home,
 there is a wider gap between the two menus when viewed in these same
 browsers. My text size is the same in all browsers (default: medium).



 Any ideas what's happening?





 __
 css-discuss [cs...@lists.css-discuss.org]
 http://www.css-discuss.org/mailman/listinfo/css-d
 List wiki/FAQ -- http://css-discuss.incutio.com/
 List policies -- http://css-discuss.org/policies.html
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

 


__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] vertical align div

2009-03-02 Thread designer
A properly marked up table with 1-row of 3-cells (in this case) is valid 
(and accessible) and is the only robust solution I know of for all browsers. 
The extremists will complain about table layout of course, but it's a case 
of being pragmatic in making the thing work - simply, and without any 
problems that I know of.

Bob

- Original Message - 
From: Ian Young i...@iyesolutions.co.uk
To: css-d@lists.css-discuss.org
Sent: Monday, March 02, 2009 1:31 PM
Subject: [css-d] vertical align div



 I have been playing around with vertically aligning my main portal.

 The code I have been using has two main problems.

 1. It appears to need to be on the page to display the vertical
 alignment

 2.  It loses its horizontal alignment.



 http://www.iyesolutions.co.uk/templates/portfolios/template3/vertical-align.
 html



 The red background is just for testing.



 The vertical align code is on the page.



 There must be a more elegant method, surely.



 Best



 Ian Young

 Director

 IY e-Solutions







 __
 css-discuss [cs...@lists.css-discuss.org]
 http://www.css-discuss.org/mailman/listinfo/css-d
 List wiki/FAQ -- http://css-discuss.incutio.com/
 List policies -- http://css-discuss.org/policies.html
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

 


__
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] IE6 not working in XHTML

2008-09-30 Thread Cathy, Designer
For IE bugs I usually just keep widths and heights, padding and margins

in separate boxes.  And this site (www.tibbles.net/misc/blog) works 
fine in IE 5.5, and 7, 8, firefox, NN, and a bunch of others that I got 
screenshots for.  What on earth is going on with 6.0??  I'm completely 
stuck here! 

The summary - in the main div, I have a sidebar floating left, and a 
content div floating right.  The sum of their widths is less than the 
width of the parent container, even if I ADD all margins and paddings to 
the width.  I've no idea how this is even possible. 
I've included a conditional style sheet to try and work around it.  In 
ie6.css, I've put:
#content {
width: 500px;  (over 60px smaller than original css)
background-color:blue;
}

And I have a blue box that is the SAME size, with a smaller child box!  
How is that possible?


This is the style sheet - the ENTIRE thing:  (I dont' know what is relevant)
http://css.pastebin.com/m1efc3625


Thanks for any insights!  I'm not opposed to learning on my own either, 
but I can't figure out what to google in this situation. 
regards,
Cathy



__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Double space after a period

2006-10-17 Thread Designer
I've looked around for a stable solution which doesn't involve putting 
nbsp, emsp; etc all over the content (that's presentational :-) ) and 
can only come up with using the old s tag (for strikeout):

s{
padding-right: 1em; 
text-decoration : none;
}

then, blah blahs./sblah blah.  It seems to work, but I'd be grateful 
if someone could check it in odd browsers such as Lynx (Rene?). You can 
see a working test here:

http://www.rhh.myzen.co.uk/rhh2007/locations/constantine/doublespace.html

Note: it needs a trans doctype if it's to validate . . .

Thanks.

-- 
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Double space after a period]]

2006-10-15 Thread Designer
Chris Williams wrote:

 I have this problem, and I use nbsp;space and not nbsp;nbsp;.
 I find that works, and I haven't seen the space at the beginning
 problem.  It seems that UA's can handle the nbsp; at the end of the
 line OK.  I do this replacement with a simple regex in my PHP code.

 HTH,
 Chris

 PS -- it is very correct, it is NOT something for old English teachers.
 The Chicago manual, the latest Strunk and White editions, and many
 others, still use it.  Just because a random entry in Wikipedia and the
 AP don't do it, doesn't mean it's not right...  And browsers don't do it
 because it's easier to collapse all spaces, not because it's right.
 __

   
declare:

i   {padding-right : 1em;   }

then use i./i in the text.  Not brilliant, certainly not semantic,
but it seems to work. I wanted to avoid a long 'span' and use a simple
(short) tag.

I doubt that anyone can spot an italicised period. .  :-) !

Anyone any good (better)  suggestions?

-- 
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk







-- 
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk




-- 
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Site Check Please

2006-09-19 Thread Designer
tedd wrote:
 Hi gang:

 Please review --

 http://sperling.com/a/
Hi tedd,

Very nice look and feel. My only reservation is that I just hate code 
repeating itself and I hate to see nbsp;nbsp; used as spacing, so I'd 
like your h3 to be redefined as having the bird gif as a background 
(left) with a margin/padding left to accommodate it, thereby making your 
current:

h3img src=images/gifs/bird3.gif alt=PHP, MySQL, CGI, Javascript, 
Flash Section 508 ADA/nbsp;nbsp;Web Applications and Functional Web 
Sites/h3

types become simply:

h3Web Applications and Functional Web Sites/h3

HTH,

-- 
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] styling a hr / in IE

2006-09-05 Thread Designer
[EMAIL PROTECTED] wrote:
 I don't remember where I stole this:
 hr {border: none 0;border-top: 1px dashed #000;width: 50%;height: 1px;}
 Maybe it will work for you. Maybe not. 
 ~dL

   
Same idea really, but I use:

.hr{
height : 1px;
margin : Xpx 0px;
border-top : 1px solid #000; }

where the X is replaced with half the vertical height you want the line 
to occupy. I've used this for a while without problems.

-- 
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CSS beginner seeking help

2006-07-20 Thread Designer
Janet Chang wrote:
 Hi,

 I just joined the listserv and am seeking help on a new site I am coding 
 for my organization. I took an intro to CSS class a few months ago so I'm 
 still quite a newbie, but would like to build my experience using CSS.

 Since this is a brand new site, I was able to start from scratch and build 
 it up following the basic procedures we learned in my class. However, when 
 I get to the more complicated layout stuff, that's when I feel like I'm 
 starting to resort to trial and error instead of actually knowing what I'm 
 doing.

 If someone wouldn't mind taking a look at what I've done so far and letting 
 me know if there are any glaring errors I've made or improvements I could 
 make, I would be most grateful.

 Also, I'm having trouble figuring out how to get a border separating my 
 mainnav div and my content div that stretches from the subheader to the 
 footer regardless of length of text in either box. Any help on this would 
 be most appreciated!

 Here's the draft of the site so far: 
 http://www3.law.northwestern.edu/macarthur/

 Here is the designed template I'm more or less basing it on: 
 http://www3.law.northwestern.edu/macarthur/graphics/MacArthur_website.jpg
 (it doesn't show well in the image, but there is supposed to be a grey line 
 separating the nav area and the content area)

 Thanks!
 Janet 


 __
 css-discuss [EMAIL PROTECTED]
 http://www.css-discuss.org/mailman/listinfo/css-d
 IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
 List wiki/FAQ -- http://css-discuss.incutio.com/
 Supported by evolt.org -- http://www.evolt.org/help_support_evolt/



   
Hi Janet,

Nice layout and a marvellous 'first real try'.

All I would say (in addition to what has been said) is to move your 
background image from the wrapper and put it in the header. That way, 
when anyone resizes the text significantly, the background remains 
throughout the height of the header - whereas now it stops and the text 
goes down below it.

-- 
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Random Space

2006-07-16 Thread Designer
Felix Miata wrote:
 text-align:left/*center*/
   
Hi Felix,

I've googled this intriguing bit of markup  and got nothing.  Also 
looked for David's term : 'flush left/scatter right' to no avail.
What /exactly/ does it do, and have you got any links to it?

Thanks

-- 
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] XML and CSS

2006-02-07 Thread Designer
Hi Shelly,

Interesting. I have recently been experimenting with the problem of 
presenting XHTML1.1 as application/xhtml+xml without blowing up IE, and 
I came across the excellent work outlined at :

http://www.workingwith.me.uk/articles/scripting/mimetypes/

This uses PHP to check the http_accept and insert the DTD 
header/mimetype as appropriate.  You can see it working on my site at 
the signature below.  It's very easy to implement and seems to work 
fine.  Decent browsers display 'proper' xhtml 1.1 and IE produces 
HTML4.01 strict.

HTH,

Bob McClelland
www.gwelanmor-internet.co.uk



Design Groups wrote:

I have a project coming up in the very near future.  It's for a company that 
is some kind of investment firm, and they have a *ton* of data that is 
tabular in form.  They want to use tables *only* for the tabular data, and 
that's it - the rest is supposed to be in XHTML.

Now, I've been told my *my* boss that the client eventually wants to move 
the site into complete XML - not necessarily now, but in the next couple of 
years.  So they want me to code the site in as strict XHTML as I possibly 
can.

I have no problem doing this - I am aware, though, that if you use the XHTML 
1.1 documentation, you should really serve the page up as an XML document 
using application/xml or something like that, and that many people who use 
XHTML 1.1 incorrectly serve up the document (I'm guilty of this in the 
past).  I'm not sure what the exact semantics are on this, so pardon my 
iffyness here!

Anyway, I'd like to have this site function and work properly with CSS and 
XHTML 1.1 - if I can even go as far as XML, I'd love to.  Or, would you all 
stick with XHTML 1.0 Strict and let them work it up to XML themselves?  I 
know when I've *tried* to do XHTML 1.1 (and serve it up as an XML doc) I get 
all kinds of weird errors and code things - it just seems so difficult. 
Have any of you done an XML site and had it display CSS (and HTML code) 
successfully?  Where can I read up on this kind of thing?  Everything I find 
when trying to Google it is either foggy in this area, or complete 
techno-babble and I can't make heads or tails of it.

Any suggestions or advice would be appreciated!  It's kind of exciting to 
actually have a client that understands some of this stuff for once, and I'd 
like to make the transition as easy as possible for them.  Plus, I've been 
wanting to try it out *seriously* but haven't had a real chance to yet.  I 
think this is a cool opportunity.

~Shelly


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/



  



__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] IE Developer tool bar

2005-09-24 Thread designer



matthijs abeelen wrote:


Why would anyone - certainly on this list - be interested in a toolbar for
IE?
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/



 

Looking at an IE  problem page actually in IE and using the Dom 
inspector (e.g.) could be very useful at times. Well, it would to me, 
anyway.


--
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Is it possible - Image scaling with CSS in liquid layout

2005-08-08 Thread designer

Hi Janie,

If you are talking about small(ish) graphics, you can produce the 
graphic twice the size it should be, then specify the graphic dimensions 
as 50%, so that when someone resizes, you've got some way to go to get 
to the 'real' size, then a bit more until it breaks up, or pixelates, or 
whatever.


It's a method which is contrary to everything I believe in, however - I 
was brought up to make images as 'small' (file size) as possible . . .


Bob McClelland
www.gwelanmor-internet.co.uk



Janie Hadsel wrote:

. . . I'd like to point out that there are some image 
quality issues with allowing the browser to resize images according to the 
user's text-size settings and ask how one would go about detecting the user 
text size (if that's even possible) so that pre-optimized images could be 
used according to size ranges.



__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] Table of contents with dotted line

2005-07-30 Thread designer

Hi Jared and all,

On 7/28/05, Jared Stein  wrote:

 Hey all, I've come up with this work-around to deliver a typical 
book-like table of contents entry appearance (with dashes/dots between 
toc entry and page number) and while it seems fully flexible, pretty 
reliable, and not too trashy in terms of coding, I'd still welcome 
anyone's alternative approaches or experiences. 


 Page available, with CSS embedded:   
http://stein.uvsc.edu/steinja/tableofcontents.html


I was intrigued by your method, so tried an alternative using a dashed 
background on inline elements.  The code for each entry is reduced to, e.g.:


li
   p
 Bookless in Benidorm
   /p
   a href=ch23.html 5/a
/li

The li has the background (dashes) and the p is made to display : inline.

You can see this working, including the relevant CSS,  at 
http://www.treyarnon.fsworld.co.uk/menufiles/chapters.html  (A dummy 
mockup so far - the chapter links don't go anywhere).


Can anyone see any problems with doing this?

Thanks,

Bob McClelland
www.gwelanmor-internet.co.uk
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] Typography and CSS

2005-07-19 Thread designer
Could someone please recommend a book which deals fully with typography 
and web design (ie, CSS, primarily :-). I've Googled and got a zillion 
hits, mainly web sites of course, many concentrating on which units to use.


What I'm after really is a book which covers typography in the same way 
that it would for a printer, but written from the standpoint of CSS and, 
very importantly, DESIGN.  Things like the relationship of sizes for 
text/headings, which fonts are most 'readable/legible' etc etc.


Since so much of the web is about the presentation of text I feel sure 
there must be a book . . .


Many thanks for any pointers.

Bob

P.S. I've read Mark Boulton!
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] more on the [/*IE*/ hack

2005-06-18 Thread designer

To Ingo, and anyone else who is interested:

I have provided another example to test this out, viz:

#tester{
   padding : 50px;
   width : 500px;
   border : 5px solid #ff;
   font: 14px Verdana, Arial, Helvetica, sans-serif;
   color: #ff;
   [/*IE*/] width: 610px;
   [/*IE*/] border : 5px solid #ff;
   [/*IE*/]color: #ff;
   background : #ccc; /*to prove that the parser does indeed carry on 
executing normally*/

}

file is at www.marscovista.com/ieonlypt2.html

It seems to work fine, even though the W3C CSS validator declares a 
parsing error.  I am simply not sufficiently knowledgeable enough to 
know if this means that the validator is confused by the 'syntax error' 
and is actually wrong here?


Anyone?

Thanks,

Bob
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] more on the [/*IE*/ hack

2005-06-18 Thread designer

Hi Philippe and all,

Interestingly, all the declarations are honoured on a PC in IE5.5, IE6, 
FF1, Opera 8, Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) 
Gecko/20020530.


. . . ?

Bob

Philippe Wittenbergh wrote:



Of course, the 3 previous declarations are invalid and should be 
ignored (all decent UA's do ignore those on my Powerbook) -- and they 
would be flagged as an error by a validator that is based on CSS2.1.  
And all those UA's resume parsing after the semi-column following 
[/*IE*/]color: #ff.



__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] syntax errors and coding for IE

2005-06-17 Thread designer

Dear experts,

As a variation on the underscore hack, I would dearly love to use the 
following variation:


#tester{
 width : 500px;

 [/*ie only*/width: 610px;]  or just  [width: 610px;]

 padding : 50px;
 border : 5px solid #ff;
}

or even:

--
#tester{
 padding : 50px;
 border : 5px solid #ff;
 width : 500px;
}

#tester {  [/*ie only*/ width: 602px; ]  }

-

I find the square brackets to be neat, simple and it makes for readable 
and more 'understandable' code.  It validates fine and there doesn't 
seem to be a problem.  However, I do understand that, whereas the 
underscore is not reserved for future developments, other characters 
such as square brackets are actually considered by the W3C to be syntax 
errors at this time (even though, as I said, the markup validates).   
Now, I have also been told that the problem will occur when I start to 
parse XML - but when is that likely to be? (I have no plans/need to at 
this time). If It's going to be five years off, then IE5 and it's kin 
will be long gone and I can delete these IE only lines.


So, finally, my question:  When do you reckon that using [ ] will be a 
problem and in what way, from a practical point of view?


Many thanks,

Bob McClelland
www.gwelanmor-internet.co.uk


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Paste plain text to clean HTML

2005-06-11 Thread designer

Gustavo Caetano wrote:

Since it may be an off topic, I apologize myself in precedence.

The fact came up today as I was working on a writer's website. He sent me
many of his stuff, all in doc.

So, I hade to copy and past the plain text and insert each p and /p for
each paragraph of each text myself. 


Needless to say after the 10th text I couldn't see a p anymore.

So, how do you deal if this kind of situation? If you want to keep your code
clean, without those weird tags and classes inserted by some softwares that
allow you to paste a plain text straight to HTML is there any other
alternative than doing like I've done?

Really, I'm really feeling an idiot about it. It's a huge timewaster and I'm
sure that there's probably dozens of softwares that do this, though I
couldn't find ANY searching in Google.

Thanks a lot

Gustavo Caetano
--
Pensamentos bonitos e mulheres bonitas jamais perduram 
- Charles Bukowski
 



__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Hi Gustavo,

I've had this problem also.  The solution is to use Dreamweaver in 
design mode:  if you copy and paste from a word doc into DW in this way, 
all the formatting is preserved, all the funny characters are dealt with 
properly, and it actually does a brilliant job AND produces valid code! 
 It's the only time I use design view and it's one of the few things it 
does very well.


Hope this helps you as much as it did me!

Bob McClelland
www.gwelanmor-internet.co.uk

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/