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: 1834.96 MB
Powered by
Channel Info
Network: freenodeChannel: #html |
Search in www.irclog.org
Log from #html at freenode 2006-05-23
[12:34]<2fun2nzzm>so, how do I center a div?
[12:34]<2fun2nzzm>n xhtml/css
[12:35]<mnzmzjjv>you can center any block element (eg: div) in HTML and XHTML with the "margin: 0 auto;" CSS rule
[12:35]<2fun2nzzm>cool, thanks!
[12:36]<2fun2nzzm>didn't work.
[12:36]<2fun2nzzm>wait
[12:37]<2fun2nzzm>huzzah!
[12:37]<2fun2nzzm>it was floating:P
[12:39]<2fun2nzzm>awww, it doesn't work with padding the same way
[12:39]<2fun2nzzm>:P
[12:47]<2fun2nzzm>heh, one more question, is it possible to center an image on a line?
[12:48]<2fun2nzzm>or at least keep it from floating above the line.
[12:48]<mnzmzjjv>it is. if the image is set to display as a block-level element and not the default inline-level element
[12:49]<2fun2nzzm>okay.
[12:49]<mnzmzjjv>erm... you mean to center it vertically?
[12:50]<2fun2nzzm>text<img/>text
[12:50]<2fun2nzzm>the image is appears to be floating a little bit higher than the text line
[12:50]<mnzmzjjv>vertical-align: bottom;
[12:51]<2fun2nzzm>sweety
[12:51]<2fun2nzzm>thanks
[12:58]<-- svgvsdyzgjvr_ xrs>/dev/null")
[13:09]<2j2sfrnmn>dudes, i got a buggy thing with tabindex... it seems that 1,2,3...10,11,12... it skips thru from 1 to 10, and then 20, and so forth, back to 2, then 12...
[13:10]<mnzmzjjv>bobslaede: got a URL?
[13:11]<2j2sfrnmn>nope
[13:11]<mnzmzjjv>how about pasting an example in pastebin.com?
[13:11]<2j2sfrnmn>sure, 1 sec.
[13:12]<2j2sfrnmn>i know, ill just trow together an example..
[13:13]<2fun2nzzm>what's a good way do make a sidebar?
[13:15]<2fun2nzzm>I suppose I could just google that one...
[13:15]<2j2sfrnmn>deadroot: wow, now it wont do it again...
[13:17]<2j2sfrnmn>deadroot: dude, i got it... some javascript messed up the order :p
[13:18]<2fun2nzzm>wow, the first useful link for sidebar+tutorial+html says to use a table...
[13:18]<2fun2nzzm>also an ugly page, go figure
[13:20]<2fun2nzzm>the next one uses frames.
[13:20]<2fun2nzzm>wow
[13:22]<mnzmzjjv>bluebeard: try playing with floats :P
[13:23]<mnzmzjjv>beware of the limitations of floated menus though. they won't stretch to the height of the content, for example
[13:24]<2fun2nzzm>I've got a float sidebar, and a content section that's going to take up the rest of the space
[13:25]<2fun2nzzm>right now the bar is floating over the content, and pushing the text inside of the content over.
[13:28]<2fun2nzzm>I want the sidebar to take up the least room possible, and the content to take up the rest basically.
[13:34]<2fun2nzzm>bwar, time for me to sleep
[13:34]<2fun2nzzm>'nighjt
[14:26]<znzn2zj>Hello! I have some HTML code that I need to maintain, and there it's a tiny problem. A navigation tree, with nice clickable icons for expanding and stuff, works well under Firefox, but not IE.
[14:26]<znzn2zj>I tracked it down to the usage of float:left.
[14:26]<znzn2zj>on the clickable icons.
[14:27]<znzn2zj>But removing it, and going from divs to spans to keep things on the same line, now means that the text for each item in the navigation tree no longer is nicely indented.
[14:27]<znzn2zj>I have googled, but I can't find any examples of navtrees like this.
[14:28]<znzn2zj>I'd like to NOT use tables. ;) But I'd also like to avoid to do css-positioning for each little thing in the nav-tree, as that would be very complex and take a lot of time to fix.
[14:28]<znzn2zj>Any ideas? Hints? links?
[14:28]<hjnf\wjzc>regebro: got an url?
[14:29]<znzn2zj>Hmm. No, sorry, all internal or password protected.
[14:29]<znzn2zj>I can paste some code somewhere if you like.
[14:30]<hjnf\wjzc>ok, message me what you're trying to do first
[14:31]<lrsvn-yv>Someone at 213.56.215.224 pasted "<div class="navigationItem" st" (43 lines) at http://pastebin.bafserv.com/3852
[14:31]<znzn2zj>Heh. Yeah, thats me. :O
[14:33]<znzn2zj>So I'm trying to get the pasted code to indent the text for the navigation items when they wrap.
[14:37]<hjnf\wjzc>would've been alot easier if I saw it
[14:38]<gjss>regebro: use an UL list for navigation menues?
[14:38]<znzn2zj>noss: Can I get the bullets to be clickable?
[14:39]<gjss>i dont use the bullets, i just put a background image in the anchor.
[14:40]<lrsvn-yv>"regebro" at 213.56.215.224 pasted "An example." (11 lines) at http://pastebin.bafserv.com/3853
[14:41]<znzn2zj>noss: Yes, but then you get the indent problem. I tried to illustrate it in 3853 paste above, also for the benefit of Hoel\work
[14:42]<gjss>i dont get it, you get it.
[14:42]<znzn2zj>You don't get that problem, noss?
[14:42]<znzn2zj>In that case you do something different from me. :) You don't happen to have an example?
[14:44]<gjss>google up listamatic
[14:47]<znzn2zj>Aha, they call it nested lists, when I call it trees. :) That's good to know.
[14:47]<znzn2zj>I'll google a bit on nested lists after lunch. :)
[15:00]<znzn2zj>Ah, of course, padding-left in the list item, and not on the title-text! Ha! Gotcha!
[15:01]<znzn2zj>No, still doesn't work. Daft me.
[15:02]<znzn2zj>I give up.
[15:02]<vxznrv>hey, is using META refresh tags the only way to redirect to another page?
[15:02]<vxznrv>or are there better ways ?
[15:02]<zjddndnsnzynuw>you can use PHP or JavaScript
[15:02]<zjddndnsnzynuw>dunno how to implement that with JavaScript anyway
[15:02]<zjddndnsnzynuw>:P
[15:02]<gjss>threat: the http protocol has support for redirections.
[15:03]<zjddndnsnzynuw>yeah, it can be done with php
[15:03]<gjss>threat: see status codes above 300 in the http protocol.
[15:03]<gjss>it _should_ be done with http.
[15:03]<zjddndnsnzynuw>header ("Location: ./index.php");
[15:03]<zjddndnsnzynuw>this redirects to ./index.php
[15:04]<zjddndnsnzynuw>no other data should be sent before that statement, or else it won't work
[15:08]<vxznrv>RommeDeSerieux, what about in PHP ?
[15:08]<gjss>threat: have another cup of coffee.
[15:08]<hjnf\wjzc>what would be the correct way to add a flash-file to my xhtml document ?
[15:08]<zjddndnsnzynuw>well, that header() call is a PHP code
[15:08]<vxznrv>haha sorry
[15:08]<hjnf\wjzc>html objcet
[15:08]<hjnf\wjzc>html object
[15:08]<vxznrv>RommeDeSerieux, I am lagged
[15:08]<gjss>hoel: using OBJECT likely.
[15:09]<hjnf\wjzc>noss: yeah, but the complete markup?
[15:09]<vxznrv>noss, ummm, so I shouldn't use META refresh tag in HTML? what is this HTTP thingy? can that be done using HTML? or is the webserver dependant?
[15:09]<zjddndnsnzynuw>take a look at any page containing flash
[15:10]<hjnf\wjzc>nothing that slips my mind
[15:10]<gjss>threat: it is a fully-standardized-works-in-all-browsers http status code.
[15:10]<hjnf\wjzc>RommeDeSerieux: got an url?
[15:10]<zjddndnsnzynuw>Hoel\work: http://www.macromedia.com/







