Re: [WSG] using scalable vector graphics
Gary Menzel wrote: Browsers that dont support SVG natively require some type of embed tag. here is what i have. i created an abstract graphic in illustrator and saved it as a svg file. according to adobe one uses the embed src... tag to place the file in a web page. the page sticks in the validator at the embed tag. here is the sample page. is there a way to make this page to standards using this format? dwain http://www.alforddesigngroup.com/sandbox/svg-test.html -- Dwain Alford [EMAIL PROTECTED] http://www.alforddesigngroup.com The artist may use any form which his expression demands; for his inner impulse must find suitable expression. Wassily Kandinsky, Concerning The Spiritual In Art ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] Browser hijacking for usability
Title: Browser hijacking for usability Hi All, I've had an idea recently I wanted to ask about, as it's slightly shady, but I think it has some value. I'm near the end of a redesign and am working on the help section currently, there's some troubleshooting advice on pop-ups, which although don't really apply anymore due to my removing them and/or using accessible popup code, am keeping the articles for... ...I've been thinking about whether it would help to automatically fix these problems by using registry keys, for example. - start contents of a registry file -- REGEDIT4 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows\Allow\] *.yourdomainaddress.com=hex: - end contents of a registry file -- ...Would add your site to the allow list for pop ups in ie. This and other browsing problems could potentially be fixed very easily. I like this because users just run the file and they're away, but I'm cringing in the same way you probably are when reading..it all feels a bit shady doesn't it? What do you think? Jamie Mason: Design // Skysports.com http://www.skysports.com/ , Central House, Beckwith Knowle, Otley Road, Harrogate, HG3 1UF
RE: [WSG] Browser hijacking for usability
Title: Message Jamie Mason I've been thinking about whether it would help to automatically fix these problems by using registry keys, for example. Ask the question of yourself - if you were instructed by a website to run a file that changed registry settings on your pc, would you do it? However appealing the idea may sound, and however easy it makes things for your users, messing with the registry is a risky business at the best of times. I would assume that 99.99% of users wouldn't touch it. Regards Scott SwabeyGeneral ManagerLafinboy Productions:: website design :: website development :: graphic designe [EMAIL PROTECTED]t +61 (0)415 193 126w www.lafinboy.com -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sent: Monday, 18 July 2005 8:34 PMTo: 'wsg@webstandardsgroup.org'Subject: [WSG] Browser hijacking for usability Hi All, I've had an idea recently I wanted to ask about, as it's slightly shady, but I think it has some value. I'm near the end of a redesign and am working on the help section currently, there's some troubleshooting advice on pop-ups, which although don't really apply anymore due to my removing them and/or using accessible popup code, am keeping the articles for... ... - start contents of a registry file -- REGEDIT4 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows\Allow\] "*.yourdomainaddress.com"=hex: - end contents of a registry file -- ...Would add your site to the allow list for pop ups in ie. This and other browsing problems could potentially be fixed very easily. I like this because users just run the file and they're away, but I'm cringing in the same way you probably are when reading..it all feels a bit shady doesn't it? What do you think? Jamie Mason: Design // Skysports.com http://www.skysports.com/ , Central House, Beckwith Knowle, Otley Road, Harrogate, HG3 1UF
Re: [WSG] using scalable vector graphics
Use the object tag, just like we do with Flash. The SVG mimetype (type atrribute) is image/svg+xml so you'd have something like: object type=image/svg+xml data=image.svg !-- fallback content -- /object You can add width and heigh into that if you need to (though that rather defeats the purpose of using vector graphics). No embed tags needed at all. I can't fathom why you've been advised to use embed at all, I must say. Ben ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] Browser hijacking for usability
Title: Message Not to mention youre talking IE/Win only which is a dwindling market. Sounds worse than ActiveX to me J From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Swabey (Lafinboy Productions) Sent: 18 July 2005 12:00 To: wsg@webstandardsgroup.org Subject: RE: [WSG] Browser hijacking for usability Jamie Mason I've been thinking about whether it would help to automatically fix these problems by using registry keys, for example. Ask the question of yourself - if you were instructed by a website to run a file that changed registry settings on your pc, would you do it? However appealing the idea may sound, and however easy it makes things for your users, messing with the registry is a risky business at the best of times. I would assume that 99.99% of users wouldn't touch it. Regards Scott Swabey General Manager Lafinboy Productions :: website design :: website development :: graphic design e [EMAIL PROTECTED] t +61 (0)415 193 126 w www.lafinboy.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sent: Monday, 18 July 2005 8:34 PM To: 'wsg@webstandardsgroup.org' Subject: [WSG] Browser hijacking for usability Hi All, I've had an idea recently I wanted to ask about, as it's slightly shady, but I think it has some value. I'm near the end of a redesign and am working on the help section currently, there's some troubleshooting advice on pop-ups, which although don't really apply anymore due to my removing them and/or using accessible popup code, am keeping the articles for... ... - start contents of a registry file -- REGEDIT4 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows\Allow\] *.yourdomainaddress.com=hex: - end contents of a registry file -- ...Would add your site to the allow list for pop ups in ie. This and other browsing problems could potentially be fixed very easily. I like this because users just run the file and they're away, but I'm cringing in the same way you probably are when reading..it all feels a bit shady doesn't it? What do you think? Jamie Mason: Design // Skysports.com http://www.skysports.com/ , Central House, Beckwith Knowle, Otley Road, Harrogate, HG3 1UF
Re: [WSG] Browser hijacking for usability
On 18 Jul 2005 at 11:34, Jamie Mason wrote: What do you think? Hi Jamie, a web page which says: 'Please load this registry file' ... I would go away. A virus is harmless in comparison to a Reg-File. Regards Juergen Auer http://www.sql-und-xml.de/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] Browser hijacking for usability
Title: RE: [WSG] Browser hijacking for usability Hi All, Agreed! *throws idea towards the bin* Cheers! Jamie
[WSG] what tag will work here
hello, Im trying to style some dynamicly loaded text within a table cell, shouldnt be a big deal right. By default the text keeps reverting back to times and i cant find out why. The font style's in the linked body and td rules just are'nt applying to it. The only tag thats working for me that allows a class to work with the text is an inline strong tag. Ive tried span and dd but no joy. here is an example TD class=featuredstrong class=head asp:label id=lblbusiness_name text='%# DataBinder.Eval(Container, DataItem.business_name) %' runat=server Font-Bold=True /asp:labelbr/strongstrong class=listing asp:label id=lblAddress text='%# DataBinder.Eval(Container, DataItem.business_address1) + + DataBinder.Eval(Container, DataItem.business_address2) + + DataBinder.Eval(Container, DataItem.Towns_Name) + + DataBinder.Eval(Container, DataItem.county) %' runat=server /asp:labelbr/strong and so on... ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Prototype Framework
very interesting! - Original Message - From: Dennis Lapcewich [EMAIL PROTECTED] To: wsg@webstandardsgroup.org Sent: Friday, July 15, 2005 11:34 AM Subject: RE: [WSG] Prototype Framework See http://openrico.org/home.page for applications based on it. Bret Lester [EMAIL PROTECTED] a.com To Sent by: wsg@webstandardsgroup.org [EMAIL PROTECTED] cc rdsgroup.org Subject RE: [WSG] Prototype Framework 07/14/2005 05:21 PM Please respond to [EMAIL PROTECTED] roup.org Has anyone checked out the JavaScript Prototype framework? http://prototype.conio.net/ Are there any good resources around that explain how it works? ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] what tag will work here
Ouch That is some messy code. Could you show us some of your output? I've got little experience with asp.net, but I've noticed the asp:label outputs its own set of spans with inline styles. The problem may lie with your asp:label tag and not creating a series of nested spans, strongs, etc with classes. I'm sure there are more experienced .net people on this list with better advice. Ted -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of kvnmcwebn Sent: Monday, July 18, 2005 8:45 AM To: wsg@webstandardsgroup.org Subject: [WSG] what tag will work here hello, Im trying to style some dynamicly loaded text within a table cell, shouldnt be a big deal right. By default the text keeps reverting back to times and i cant find out why. The font style's in the linked body and td rules just are'nt applying to it. The only tag thats working for me that allows a class to work with the text is an inline strong tag. Ive tried span and dd but no joy. here is an example TD class=featuredstrong class=head asp:label id=lblbusiness_name text='%# DataBinder.Eval(Container, DataItem.business_name) %' runat=server Font-Bold=True /asp:labelbr/strongstrong class=listing asp:label id=lblAddress text='%# DataBinder.Eval(Container, DataItem.business_address1) + + DataBinder.Eval(Container, DataItem.business_address2) + + DataBinder.Eval(Container, DataItem.Towns_Name) + + DataBinder.Eval(Container, DataItem.county) %' runat=server /asp:labelbr/strong and so on... ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] what tag will work here
G'day Im trying to style some dynamicly loaded text within a table cell, shouldnt be a big deal right. By default the text keeps reverting back to times and i cant find out why. Without seeing the live page (actual output rather than server side code) and css it's just a guessing game. My guess is that you've declared the font on the body through css and that the table cells are not inheriting it. Rather than adding bloat by (mis)using the strong element, try this in your css: table { font-family: Arial,Geneva,Helvetica,sans-serif } Substitute your own fonts as appropriate Regards -- Bert Doorn, Better Web Design http://www.betterwebdesign.com.au/ Fast-loading, user-friendly websites ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] nth child rule
Hi All I'm working on a re-design of my blog. The design is based on the Passion of Joan of Arc, a b/w silent film. I'm trying to give certain paragraphs the impression of scratched film being shown by adding an animated background image. It's still rough, but works ok. However, I have only gotten first:child and third:child to work. The others don't seem to be showing the background. To avoid having it look like the same lines were flashing, I wanted to use co-ordinates to move the background. It wasn't working so I am stuck using top right, top left, bottom right, ... Here's my question, are there special rules for using nth-child pseudo classes? Beyond first, second, third, ... what are the labels? Sixth, seventh, tenth? That is what I would assume. Here's the prototype: http://www.tdrake.net/joan/index-liquid.html I'm still dealing with some liquid layout issues, so be kind. I also know that IE will not pay attention to the nth-child. I'm not worried about it. Ted www.tdrake.net ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Learning The DOM
Jeremy, How much JavaScript do you know? Some, but not much. Mostly learnt from hacking other people's scripts to get them to do what I want them to do. I spend more time Googling than writing Javascript code from memory. What kind of things about DOM Scripting need clarifying? Examples of best practice, how to avoid browser inconsistencies, common coding patterns. Do you want to see examples of cool stuff with a kind of DOM Scripting for dummies style explanation or more sober articles with a more geeky leaning? More geeky for me please, if I use JavaScript I want to really know it in depth. Some cool stuff's fun in between though! Please share your personal experiences: what's your skill level with JavaScript compared to say, CSS or XHTML? JavaScript: Beginner, have written scripts but don't yet have a good feel for the language or the vocabulary. CSS/XHTML expert, have a good feel for the language, don't need references much any more, starting to delve deeper into more subtle discussions. What's your opinion of JavaScript? Very useful (almost essential?) for web application UIs, useful as icing on the cake for web sites (mainly forms). I try to build without it, then add it once the XHTML/CSS has done all it can. Cheers! Anthony -- www.fonant.com - hand-crafted web sites ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] Learning The DOM
Hi Jeremy I would like some tutorials on taking older scripts that require body onload() commands and make them work without placing the event in the body tag. I'd also like a tutorial on removing the javascript from pages and target the classes assigned to those elements instead. For instance, during @media, you mentioned a href= class=external could be styled by the css and the javascript could insert the open a new window behavior. Thanks Ted - And now, I'd like to turn the question around and ask everyone on this list what they'd like to see from the DSTF. How much JavaScript do you know? What kind of things about DOM Scripting need clarifying? Do you want to see examples of cool stuff with a kind of DOM Scripting for dummies style explanation or more sober articles with a more geeky leaning? Please share your personal experiences: what's your skill level with JavaScript compared to say, CSS or XHTML? What's your opinion of JavaScript? The answers you give will really, really help determine the direction that the Task Force takes. Thanks, Jeremy -- ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Learning The DOM
Hi, The question was inspired by the article :) C On Jul 18, 2005, at 12:29 PM, Jeremy Keith wrote: By a bizarre cosmic coincidence, you've posed this question on the very day that the Web Standards Project announces the DOM Scripting Task Force: ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] Learning The DOM
Mark's site is useful too. http://www.howtocreate.co.uk/ Eddie. http://blog.tn38.net/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Kennon Sent: 18 July 2005 19:29 To: wsg@webstandardsgroup.org Subject: [WSG] Learning The DOM Hi, As many of you, more skilled than I, carry the burden of spreading good practices, I'm calling upon you for resources for learning the DOM. I've an understanding of Javascript, ECMA-script and ACTIONSCRIPT for FLASH (I know I said the F word). So all that can please direct me to the appropriate URI's CK ___ An ideal is merely the projection, on an enormously enlarged scale, of some aspect of personality. -- Aldus Huxley ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] what tag will work here
'Ouch That is some messy code.' The code is very messy, i had originally built the site carefully with divs and was down to one validation error when i handed it over to the programmer. He recreated my design with tables and handed it back with hundreds of validation errors. He had looked at my design during various stages of development and said he could work with it. I guess i should have seen it coming. Its been a job from hell, ive really lost my [EMAIL PROTECTED] on it and i just want to finish it. Anyway i solved the problem by misusing the strong tag combined with another class for changing font weight. sorry if im OT-needed to rant about this one here is the page in question http://www.onetouchireland.com/county_details.aspx?county_id=39 ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Learning The DOM
Reference, not tutorial: http://www.mozilla.org/docs/dom/domref/ Paul At 11:29 AM 7/18/2005, Chris Kennon wrote: As many of you, more skilled than I, carry the burden of spreading good practices, I'm calling upon you for resources for learning the DOM. I've an understanding of Javascript, ECMA-script and ACTIONSCRIPT for FLASH (I know I said the F word). So all that can please direct me to the appropriate URI's ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] what tag will work here
I think the font-bold=true might be causing you problems. I try to avoid using the any of the style related attributes for ASP.NET tags, since it's hard to predict what it will output to the browser. If I want to style ASP.NET tags I set the class of the asp:label /'s by using the cssclass attribute and use CSS. asp:label / outputs to the browser as span /, so your code will output as something like... TD class=featured strong class=headspan id=lblbusiness_nameBusinessName/spanbr/strong strong class=listingspan id=lblAddressAddress Text/spanbr/strong You could also not use the asp:label / and style using the tag around it, e.g., TD class=featured strong class=head%# DataBinder.Eval(Container, DataItem.business_name) %br/strong strong class=listing%# DataBinder.Eval(Container, DataItem.business_address1) % %# DataBinder.Eval(Container, DataItem.business_address2) % %# DataBinder.Eval(Container, DataItem.Towns_Name) % %# DataBinder.Eval(Container, DataItem.county) %br/strong HTH -- Ben Wong e: [EMAIL PROTECTED] w: http://blog.onehero.net ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Learning The DOM
How much JavaScript do you know? Next to none. What kind of things about DOM Scripting need clarifying? Potential pitfalls, how browser support differs and what constitutes 'behaviour'. Do you want to see examples of cool stuff with a kind of DOM Scripting for dummies style explanation or more sober articles with a more geeky leaning? Geek me up. Please share your personal experiences: what's your skill level with JavaScript compared to say, CSS or XHTML? What's your opinion of JavaScript? I'm reasonably confident with XHTML and CSS, but haven't really touched JavaScript yet. It's looming as an important aspect of my work, so I want to use it the 'right' way from the start. In the past I've frowned on JavaScript often because the sites that relied on it annoyed me. Now I think it has good applications for accessibility and seems more robust. It will always be 'icing on the cake' for our site, though, because we still support browsers (and users) who don't deal with it. The answers you give will really, really help determine the direction that the Task Force takes. I look forward to it. Thanks in advance for the effort. Damian Thanks, Jeremy -- Jeremy Keith a d a c t i o http://adactio.com/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Learning The DOM
And now, I'd like to turn the question around and ask everyone on this list what they'd like to see from the DSTF. How much JavaScript do you know? Minimal. I can read it enough to understand what a script is doing but I haven't written JavaScript from scratch yet. What kind of things about DOM Scripting need clarifying? Best practices, accessible JavaScript, graceful techniques for those UIs that have JS turned off. Do you want to see examples of cool stuff with a kind of DOM Scripting for dummies style explanation or more sober articles with a more geeky leaning? I like both... Please share your personal experiences: what's your skill level with JavaScript compared to say, CSS or XHTML? What's your opinion of JavaScript? I understand CSS/XHTML far better than I do JavaScript. I'm really new to JS, but more and more lately, I'm seeing that there can be some very useful things that JavaScript can do, after CSS/XHTML has hit the limit. JavaScript has its place, but if there's something that can be accomplished using CSS/XHTML, that should be the preferred option. The answers you give will really, really help determine the direction that the Task Force takes. Thanks, Jeremy ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
RE: [WSG] what tag will work here
Thanks, that looks clean Ben, but i couldnt get it to work-to much for me to handle. was this example TD class=featured strong class=headspan id=lblbusiness_nameBusinessName/spanbr/strong strong class=listingspan id=lblAddressAddress Text/spanbr/strong shorthand for this?? TD class=featured strong class=headspan id=lblbusiness_name%# DataBinder.Eval(Container, DataItem.business_name) %' runat=server Font-Bold=True/spanbr/strong strong class=listingspan id=lblAddressAddress Text/spanbr/strong what about the 'text=' bit? I tried removing the bold=true and using a CssClass inside the label but that didnt change the font either. Right now im using the strong tag with the font weight hack and its working ok. i will show this to the programmer in the morning. thanks again ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] what tag will work here
The first bit of code was expected output of the code you supplied. What I think you should do is remove the strong tags and the font-bold attribute, add cssclass attributes to the asp:labels instead. e.g., TD class=featured asp:label id=lblbusiness_name text='%# DataBinder.Eval(Container, DataItem.business_name) %' runat=server cssclass=head /asp:label asp:label id=lblAddress text='%# DataBinder.Eval(Container, DataItem.business_address1) + + DataBinder.Eval(Container, DataItem.business_address2) + + DataBinder.Eval(Container, DataItem.Towns_Name) + + DataBinder.Eval(Container, DataItem.county) %' runat=server cssclass=listing /asp:label then set the styles for the two asp:labels in CSS using... span.head { } span.listing { } On 7/19/05, kvnmcwebn [EMAIL PROTECTED] wrote: Thanks, that looks clean Ben, but i couldnt get it to work-to much for me to handle. was this example TD class=featured strong class=headspan id=lblbusiness_nameBusinessName/spanbr/strong strong class=listingspan id=lblAddressAddress Text/spanbr/strong shorthand for this?? TD class=featured strong class=headspan id=lblbusiness_name%# DataBinder.Eval(Container, DataItem.business_name) %' runat=server Font-Bold=True/spanbr/strong strong class=listingspan id=lblAddressAddress Text/spanbr/strong what about the 'text=' bit? I tried removing the bold=true and using a CssClass inside the label but that didnt change the font either. Right now im using the strong tag with the font weight hack and its working ok. i will show this to the programmer in the morning. thanks again ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** -- Ben Wong e: [EMAIL PROTECTED] w: http://blog.onehero.net ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] nth child rule
On 19 Jul 2005, at 1:56 am, Drake, Ted C. wrote: Here's my question, are there special rules for using nth-child pseudo classes? Beyond first, second, third, ... what are the labels? Sixth, seventh, tenth? That is what I would assume. Here's the prototype: http://www.tdrake.net/joan/index-liquid.html There is no such thing as 'third-child' and so one. Only ':first-child' (support: Gecko, Safari, Opera, iCab), :last-child (Gecko, partly in Safari) and :nth-child (no web browser supports this, currently). http://www.w3.org/TR/CSS21/selector.html#first-child http://www.w3.org/TR/css3-selectors/#nth-child-pseudo Philippe --- Philippe Wittenbergh http://emps.l-c-n.com/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] can link color inherit?
Here's a new one for me. I'm building a transitional css file for our move from legacy code to new css. The pages have an inline style that defines the color of a link in the navigation table (stop your snickering!) The new CSS has given a visited link color of blue-grey. When I view the page, the link is grey because it has been visited. My goal is to fix as much as possible with CSS before forcing people to make changes to the thousands of html pages, so I can't plan on going back to the original inline style and setting a visited color. Luckily the navigation table (I hear you snickering in the back) has a class, mainbg. So, I tried this rule: Table.mainbg a:visited {color:#f60;} however, this gives all of the visited links in the section orange instead of just the highlighted link. So then I tried: tabl.mainbg a:visited {color:inherit;} But I don't know if this is valid. It gave the active link the nice orange and made the other visited links black. Which works visually, but doesn't match the visited color associated with the rest of the page. So, my question is: is color:inherit a valid rule? What would you suggest? Sorry, I can't give you a live example, it's on an intranet. Thanks Ted ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
[WSG] text alignment on form submit buttons
hi, I'd like to left align the text in a form submit button. The following seems to work in IE (5.5+), but not in Firefox: form action=whatever input type=submit value=Submit style=width:20em;text-align:left / /form (simplified and made inline for the sake of an easy example) while realising styling form elements with css is a hit miss affair, is there a way to make Firefox play along and left align that text? any help appreciated, cheers, pete ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] text alignment on form submit buttons
Pete, Tricky but how about giving a padding right thats wide enough to push the text left? e.g: form action=""> input type=submit value=Submit style=width:20em;text-align:left;padding-right:15em;margin-left:0 / /form On 19/07/05, Peter Ottery [EMAIL PROTECTED] wrote: hi,I'd like to left align the text in a form submit button. The followingseems to work in IE (5.5+), but not in Firefox:form action="">input type=submit value=Submit style=width:20em;text-align:left / /formRegards,Amit Karmakarhttp://karmakars.com
[WSG] Body tag background color changes
Hi All Just wondering whether there was a way to include different body background colors (for different pages) within the same css file. For example #fff for page1.html, #ffc for page2.html etc. At present I have a separate style sheet for each page that requires a different background color. Thanks for any ideas... Sarah -- XERT Communications email: [EMAIL PROTECTED] office: +61 2 4782 3104 mobile: 0438 017 416 http://www.xert.com.au/ web development : digital imaging : dvd production ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Body tag background color changes
G'day Just wondering whether there was a way to include different body background colors (for different pages) within the same css file. For example #fff for page1.html, #ffc for page2.html etc. If every page has to have a different background colour, you could put an ID on the body element, then in your css: body#homepage { background-color: #fff } body#about-us { background-color; #ffc } etc with body id=homepage and body id=about-us etc If there's a few different backgrounds but they are used on a number of pages, use a class instead of id. body.section1 { background-color: #ffc } body.section2 { background-color: #fff } etc with body class=section1 and body class=section2 etc Regards -- Bert Doorn, Better Web Design http://www.betterwebdesign.com.au/ Fast-loading, user-friendly websites ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Body tag background color changes
Hi Sarah, The easiest way to achieve this is by sticking an ID attribute on your body elements, eg. body id=page1 body id=page2 Then targetting it in your CSS like so: body#page1 {background-color:#fff;} body#page2 {background-color:#ffc;} On 7/19/05, Sarah Peeke (XERT) [EMAIL PROTECTED] wrote: Just wondering whether there was a way to include different body background colors (for different pages) within the same css file. -- Lindsay Evans http://lindsayevans.com/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Body tag background color changes
Hi Sarah, The way I do this is by applying an id to my body tag in the source of the pages I want to be different then the master page. For example: page.html body page2.html: body id=bg2 page3.html: body id=bg3 CSS: body { background: #fff; } #bg2 { background: #ffc; } #bg3 { background: #ff0; } and so on. Hope this helps. Ian http://www.e-lusion.com Hi All Just wondering whether there was a way to include different body background colors (for different pages) within the same css file. For example #fff for page1.html, #ffc for page2.html etc. At present I have a separate style sheet for each page that requires a different background color. Thanks for any ideas... Sarah -- XERT Communications email: [EMAIL PROTECTED] office: +61 2 4782 3104 mobile: 0438 017 416 http://www.xert.com.au/ web development : digital imaging : dvd production ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Body tag background color changes
Absolutely; give your body tags an id representing the page: e.g. body id=page1 body id=page2 etc Then add CSS entries for each page that requires a particular style to your stylesheet: #page1 { background-color: #fff; } #page2 { background-color: #ffc; } etc. Cheers Peter Sarah Peeke (XERT) wrote: Just wondering whether there was a way to include different body background colors (for different pages) within the same css file. -- Peter Asquith http://www.wasabicube.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] text alignment on form submit buttons
On 19 Jul 2005, at 10:00 am, Peter Ottery wrote: hi, I'd like to left align the text in a form submit button. The following seems to work in IE (5.5+), but not in Firefox: form action=whatever input type=submit value=Submit style=width:20em;text-align:left / /form (simplified and made inline for the sake of an easy example) while realising styling form elements with css is a hit miss affair, is there a way to make Firefox play along and left align that text? I don't think you can pull it off. The text(label) input of an input[type=submit] in Firefox is wrapped in a -moz pseudo-element (which creates the hotspot). In resforms.css (which styles the form widgets in Gecko), you'll find this: *|*::-moz-button-content { display: block; text-align: center; } Hmm, it seems you can style that, as an author. Could be messy, though, and have unexpected consequences. (I've just tested that for the style, it 'looks' like it works, not sure about the behaviour of the element). PS - the input[type=submit] {text-align:left} doesn't work either in Opera 8 and Safari. Philippe --- Philippe Wittenbergh http://emps.l-c-n.com/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Body tag background color changes
Sarah Peeke (XERT) wrote: Hi All Just wondering whether there was a way to include different body background colors (for different pages) within the same css file. For example #fff for page1.html, #ffc for page2.html etc. At present I have a separate style sheet for each page that requires a different background color. Thanks for any ideas... maybe give a class or id to the body of each page and style the background color there? dwain -- Dwain Alford [EMAIL PROTECTED] http://www.alforddesigngroup.com The artist may use any form which his expression demands; for his inner impulse must find suitable expression. Wassily Kandinsky, Concerning The Spiritual In Art ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Body tag background color changes
Sarah Peeke (XERT) wrote: Just wondering whether there was a way to include different body background colors (for different pages) within the same css file. For example #fff for page1.html, #ffc for page2.html etc. One way (with obvious variants) is to give your HTML or BODY element a class or ID, and have different rules based on that in your CSS. E.g. with IDs: body#contact { background: #fff; } body#portfolio { background: #ffc; } on the contact page body id=contact and on the portfolio page body id=portfolio -- Patrick H. Lauke __ re·dux (adj.): brought back; returned. used postpositively [latin : re-, re- + dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk http://redux.deviantart.com __ Web Standards Project (WaSP) Accessibility Task Force http://webstandards.org/ __ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] using scalable vector graphics
Ben Ward wrote: Use the object tag, just like we do with Flash. The SVG mimetype (type atrribute) is image/svg+xml so you'd have something like: object type=image/svg+xml data=image.svg !-- fallback content -- /object would the fall back content maybe be a jpg, gif or png of the svg image? You can add width and heigh into that if you need to (though that rather defeats the purpose of using vector graphics). No embed tags needed at all. I can't fathom why you've been advised to use embed at all, I must say. when i googled the question, adobe support was one hit and they said in their explanation to embed the graphic in the html. if i wanted to use this image as a background image to fit the viewport or container, regardless of the users resolution, how would i do this? dwain -- Dwain Alford [EMAIL PROTECTED] http://www.alforddesigngroup.com The artist may use any form which his expression demands; for his inner impulse must find suitable expression. Wassily Kandinsky, Concerning The Spiritual In Art ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Body tag background color changes
Thanks all for your lightning quick replies. I had tried some variation of these, but must have got it wrong somewhere. Much appreciated, Sarah G'day Just wondering whether there was a way to include different body background colors (for different pages) within the same css file. For example #fff for page1.html, #ffc for page2.html etc. If every page has to have a different background colour, you could put an ID on the body element, then in your css: body#homepage { background-color: #fff } body#about-us { background-color; #ffc } etc with body id=homepage and body id=about-us etc If there's a few different backgrounds but they are used on a number of pages, use a class instead of id. body.section1 { background-color: #ffc } body.section2 { background-color: #fff } etc with body class=section1 and body class=section2 etc Regards ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **