Author Topic: General CSS Thread  (Read 8180 times)

0 Members and 1 Guest are viewing this topic.

Miluette

  • Sr. Member
  • ****
  • Posts: 332
  • C:
    • View Profile
    • Miluette dot com
General CSS Thread
« on: January 10, 2009, 12:49:25 pm »
CSS is good. CSS has been kind to me!

But sometimes you wonder why it does strange things. You wonder why, when you tell a div that all its links are going to be at 0.7 opacity, only one of the links in the div complies to that rule - especially when another div with similar properties is doing as it should. :O

And you wonder why overflow:auto never ever seems to work. Any idea why it wouldn't?

(I'm to give you very specific examples very soon)
« Last Edit: January 16, 2009, 02:58:53 am by Senshuu »
And wasn't it you who told me,
"The sun would always chase the day"?

reign16

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Generic CSS Thread
« Reply #1 on: January 14, 2009, 09:53:44 am »
what do you mean of Generic CSS??why there are branded and generic comes to CSS code?

ADMIN: SIGNATURE DELETED! Don't spam SEO sites here!
« Last Edit: January 14, 2009, 11:38:50 am by Xepher »

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
Re: Generic CSS Thread
« Reply #2 on: January 14, 2009, 01:26:24 pm »
It's probably because CSS is one of them things that, despite there being a standard, is still caught in the middle of a browser war. Everyone things certain things should work the way they do it, rather than the way it's specified. MS is notorious for doing this.
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]

Miluette

  • Sr. Member
  • ****
  • Posts: 332
  • C:
    • View Profile
    • Miluette dot com
Re: Generic CSS Thread
« Reply #3 on: January 16, 2009, 02:58:23 am »
I just discovered something about my new CSS'd Project Wonderful adbox on Millennium... it looks exactly how it should in Firefox, but nowhere else. Observe: http://millennium.senshuu.com/info.php (but not the main page 'cause I changed something there and am instead trying to center everything without the container box, which I think is the source of the problem e_e;;;;`)
And wasn't it you who told me,
"The sun would always chase the day"?

Miluette

  • Sr. Member
  • ****
  • Posts: 332
  • C:
    • View Profile
    • Miluette dot com
Re: General CSS Thread
« Reply #4 on: February 15, 2009, 11:57:31 am »
I have the feeling my container divs cause more headaches than they should. With the aforementioned issue, I know the width of my container related to the problem. Make the container less wide? Messed up. Make it wider? Also messes up. Don't define a width at all? Way messed up. Whoa. I resolved to take out an element I started feeling was "extra" and let it be all weird and off-center until I decide to relocate the ad box or something. :B


I've been using a 100% table height trick for a few websites. http://apptools.com/examples/tableheight.php This one. It only works sometimes. For example, it doesn't work on Millennium's site, except in the archives pages. And when I implement it into my code for Smackjeeves/Drunkduck mirrors, weird things happen. WEIRD. But it wasn't really needed at those sites, anyway.

http://senshuu.com/temp/tcc/ This site I'm working on for someone neither does 100% width nor height well. When I had only one green bar stretching the full width of the page it was fine, but now they both stop short and cause horizontal scrolling... strangely. Also, the main content area doesn't go the full height. If I only specify borders for its left and right, it definitely does not touch top-bottom edges. Used to have a lot of extra space below it for some reason, too (I really don't get when my sites do that).

Mmm, overcoming design hurdles. Any assistance with these issues is appreciated. <3
« Last Edit: February 15, 2009, 11:59:49 am by Senshuu »
And wasn't it you who told me,
"The sun would always chase the day"?

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,328
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Re: General CSS Thread
« Reply #5 on: February 15, 2009, 06:44:06 pm »
I fixed the forms...
And I fixed the wordpress...

CSS can go DIAF :-P


In all seriousness, I'm just not that good with CSS issues. Sorry!

Miluette

  • Sr. Member
  • ****
  • Posts: 332
  • C:
    • View Profile
    • Miluette dot com
Re: General CSS Thread
« Reply #6 on: February 15, 2009, 06:58:18 pm »
LOL, and I can understand that!

Unlike all those other things, CSS is my buddy... it just acts up on me sometimes. Presenting itself to me one way in one browser, and being another way in the next browser! (But this one last problem I had actually occurs in all of them, whoopsie)
And wasn't it you who told me,
"The sun would always chase the day"?

yny-u

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • yny-u
Re: General CSS Thread
« Reply #7 on: March 03, 2009, 03:11:28 pm »
Test in multiple browsers.. Always test in multiple browsers.

Yahoo has a library of CSS styles that goes some way to neutralizing these cross-browser issues. It has a few quirks, but it can save a lot of trouble.. http://developer.yahoo.com/yui/reset/

Hope that helps.

Miluette

  • Sr. Member
  • ****
  • Posts: 332
  • C:
    • View Profile
    • Miluette dot com
Re: General CSS Thread
« Reply #8 on: April 02, 2009, 06:15:19 am »
Oh yeah, that reminds me, I'm looking into obtaining a CSS reset stylesheet or two. It'd probably help sometimes. :D I'm getting used to how different browsers handle things more now. (Today I found out Sunrise and Camino? Not that great.)
And wasn't it you who told me,
"The sun would always chase the day"?