IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1821.84 MB
Powered by
Channel Info
Network: freenodeChannel: #html |
Search in www.irclog.org
Log from #html at freenode 2006-07-28
[01:05]<juvfrwo9>I wanto apply different .css-files on diffrent tables in the same page how can I do that?
[01:06]<tgzdygus>outlaw84: use ids or classes
[01:06]<gjss>`css selectors
[01:06]<rtfs>css selectors: http://w3.org/TR/CSS21/selector.html
[01:06]<gjss>with those.
[01:09]<juvfrwo9>what would that make in code? I browsed that page you linked but didnot find what I needed..
[01:09]<juvfrwo9>I dont want to paste stuff from the css-files
[01:11]<gjss>do you know what a selector is?
[01:11]<vggsxyxrg>so
[01:12]<juvfrwo9>yea I think so...
[01:14]<juvfrwo9>But I cant find a way to change between stylesheet files with the help off it
[01:15]<gjss>you change the selectors.
[01:15]<juvfrwo9>Kind off like this?
[01:15]<juvfrwo9> <STYLE type="text/css">
[01:15]<juvfrwo9> *#z98y { letter-spacing: 0.3em }
[01:15]<juvfrwo9> </STYLE>
[01:16]<juvfrwo9>but for that to work I would still have to paste some stuff from the stylesheet-file
[01:18]<gjss>that rule would match element with id #z98y, a really stupid id, but an id nevertheless.
[01:18]<gjss>paste some stuff from the stylesheet-file means nothing to me.
[01:18]<gjss>pasting is what you do with control-v or control-y if you are civilized.
[01:20]<juvfrwo9>cant you give me a code example of what it would look like to select a stylesheet file for a table inside the <body> ?
[01:25]<gjss>there is nothing more to css than the selectors.
[01:26]<gjss>if you want special css properties to apply to a table you need to have css rules that apply those properties to that table.
[01:27]<2zzpfd>anyone know why navigator.appVersion is displaying IE 4.0 when my "Help > About..." shows IE 6.0?
[01:27]<gjss>if you have different styles for tables listing meat prices, for those listing vegetable prices and for those listing beverage prices, then you give the meat tables class="meats" and the vegetable tables class="vegetables" and so on.
[01:27]<2zzpfd>in short my IE 6 browser is being sniffed as IE 4
[01:28]<gjss>then you have rules that go: table.meats caption { background: meaty-color; }
[01:28]<gjss>barfly: yah, browser sniffing is crap.
[01:28]<gjss>barfly: conditional comments can supply and hide things for various versions of IE.
[01:29]<gjss>barfly: use it, love it.
[01:29]<2zzpfd>but if i can't differentiate between IE 4 and 6...lol...?
[01:30]<gjss>conditional comments for the win. still.
[01:30]<juvfrwo9>noss: I get what you are saying and I am feeling that I should read up more about css-generally... But I just dont have the time to read it all..
[01:30]<gjss>outlaw84: that is not my problem.
[01:30]<2zzpfd>noss: thx
[01:34]<-- rfgw_yjggsru xrs>http://www.microsoft.com/windowsserver2003/ <- 3,400,000,000+ users can't be wrong")
[01:35]<juvfrwo9>If I wanto define class meats in the stylesheet file, I should just write ie "meats.td { FONT-SIZE: 12px; }" right?
[01:35]<gjss>close but no cookie.
[01:36]<juvfrwo9>yea.. feels close but it didnot work :(
[01:36]<gjss>look at the selector chapter again.
[01:37]<gjss>a class is only for the element that has it, not for all it's descendants.
[01:37]<gjss>but primarily you got the order wrong.
[01:37]<gjss>.class and #id
[01:38]<gjss>suffixed on an existing on nonexisting element name.
[01:39]<gjss>table.meats caption { font-family: Veal, sans-serif; }
[01:39]<juvfrwo9>yea I must be close... I wrote like like that in my stylesheet file and my editor (Quanta) reconizes it as a class but the settings doesnot get applyed
[01:39]<gjss>that will apply for all captions in table class=meats
[01:40]<juvfrwo9>oh so its like that... I get it now
[01:40]<gjss>Does FF support vertical text? say id like to render japanese?
[01:41]<mygy2jv>noss: Yes, it supports vertical-text. - http://www.webdevout.net/browser_support_css.php#support-css3propsbasic-cursor
[01:41]<gjss>Heh. You're scary Minibot.
[01:42]<gjss>Does IE support sex on the beach?
[01:43]<gjss>Does FF support drunken teenage girls?
[01:43]<juvfrwo9>this class realazation that you helped me achived made me realize I dont need two diffrents stylesheets file for my website in the first place :(
[01:43]<gjss>Does FF support all-scroll?
[01:43]<mygy2jv>noss: Yes, it supports all-scroll. (Note: uses same cursor as for "move") - http://www.webdevout.net/browser_support_css.php#support-css3propsbasic-cursor
[01:43]<juvfrwo9>What is FF support?
[01:44]<gjss>Does FF support beating outlaw84 with a stick?
[01:44]<juvfrwo9>haha
[01:44]<juvfrwo9>the only time i write the prefix FF is when I write the suffix S :D
[01:45]<gjss>some moron in #web argued that the official acronym for firefox is Fx.
[01:46]<juvfrwo9><joke> yea its realy hard and long to type firefox</joke>
[01:49]<gyggvggg66cjdgv>I'm flat googled out .. I've been able to toss a php include on a page, but for the life of me I don't see where or how to make a link load a php include on that same page in a specific location .. eg: links on the left, load a php include in the center of the page .. I have been using iFrames for this, but it's getting cumbersome ..
[01:50]<gjss>okay.
[01:53]<juvfrwo9>NineTeen67Comet: well make you like send a $_GET variable to the page and do and if(isset($_GET[])) in the page
[01:53]<juvfrwo9>*your link
[01:54]<gyggvggg66cjdgv>I'll play with that a little .. it's more than I've been finding .. thank you ..
[01:54]<juvfrwo9>do you know about $_GET ?
[01:57]<gyggvggg66cjdgv>outlaw84: I'm assuiming it is a place holder or sorts, that I can specify GET in unique links and it'll plug them in .. where I dunno yet .. lol
[01:58]<juvfrwo9><a href="bygg-sale.php?sale=001"> <--- here I send the variable sale as a $_GET['sale'] to the file bygg-sale.php
[02:00]<juvfrwo9>then in the file I can do this: if(isset($_GET['sale'])) { $sale = $_GET['sale']; if($sale==001) { echo "sale 001"; }}
[02:01]<juvfrwo9>ops little miss there
[02:01]<juvfrwo9>$sale = intval($_GET['sale']);
[02:01]<gyggvggg66cjdgv>Think I get it .. just have to read more .. php and I are recent acquaintances .. dual = should be single =?
[02:02]<juvfrwo9>yea its a simple but yet so powerfull tool
[02:03]<gyggvggg66cjdgv>php seems tough to pick up compared to html was .. it's not always where you place it in a file .. kind of like css has been for me (that's another story all together).
[02:03]<juvfrwo9>and remember to never trust stuff that comes from a $_GET
[02:03]<gyggvggg66cjdgv>Thanks for your time though .. I'm reading some php pages now .. I've got a week off from school and wanna get a new page up before I go back ..
[02:04]<juvfrwo9>np
[02:04]<gyggvggg66cjdgv>Do you think maybe just SSI would be a little easier to pick up than php includes?
[02:05]<juvfrwo9>I dont know about SSI
[02:05]<gyggvggg66cjdgv>n'kay .. I would like to keep it php so that's what I'll focus on for now ..
[02:06]<gjss>http://fantasai.inkedblade.net/style/discuss/vertical-text/paper
[02:06]<juvfrwo9>but there exist html includes as well..
[02:06]<gyggvggg66cjdgv>I'm at the php.net site now reading about it a little ..
[02:06]<gjss>heh, that guy had Brian Kernighan as his supervisor for making that report.
[02:06]<gyggvggg66cjdgv>outlaw84: hummm .. google here I come .. ;)
[02:06]<juvfrwo9><? include(<file>) ?>
[02:07]<juvfrwo9>but it might be apache that is fixing that... I am not sure
[02:07]<gyggvggg66cjdgv>outlaw84: yeah, that's one I've been looking at, that's also the one I couldn't see how to relate to a link, or make open in a specific location ..
[02:08]<gyggvggg66cjdgv>looks like html includes are just ssi renamed a little .. it brought up the same links as ssi did ..
[02:21]<mdfcd>Hello, I'm writing a web site with xhtml strict and css. I'm having problems though, I want to center everything, how would I do that in css?
[02:25]<rmfry>Milky, why don't you just check the w3schools.org CSS reference page?
[02:25]<rmfry>because honestly I don't remember exactly
[02:25]<gyggvggg66cjdgv>Milky: Also, I found this via google .. http://www.quirksmode.org/css/centering.html .. scroll down about a screen or so .. dunno if it'll help you case though ..







