Git Product home page Git Product logo

Comments (8)

levito avatar levito commented on June 12, 2024

I've committed a fix: http://github.com/levito/oocss/commit/0dd8c3edff9b3e44140eb2b9344d0cd52a58fdd0

from oocss.

tanila avatar tanila commented on June 12, 2024

Hi levito,

your fix is working. Could you explain why you and stubbornella using the body:after and main:after selector?

thank you tanila

from oocss.

levito avatar levito commented on June 12, 2024

Hi tanila,

the main area should always take the room between the sidebars. And should not float around them. In earlier revisions this was done by applying overflow:hidden. But this cuts content like css drop shadows or layers. Second try was overflow:auto. This caused scroll bars. Next try: display:table-cell for modern browsers, zoom:1 for IE6+7. No scroll bars, no cut content. But table-cell does not stretch automatically to the available width. The main col would be too narrow if it doesn't contain enough content. So the stretching is done by the line of dots in the :after class. It also doubles as a clearfix.

The problem with opera was that it does not do line-breaks with ". . ". I could fix that for Opera 10.sth with overflow:hidden for the :after class and Nicole used that solution. However, it didn't turn out to be the best solution. Someone pointed out that replacing the dot by a different character "x x " would work. So I'm using that now. It also works in the latest Opera 10.5 pre-alpha (". . " does not).

Happy coding!
levito

from oocss.

tanila avatar tanila commented on June 12, 2024

Great thanks,

now I understand. Do You think it would be a good idea to write such explanations down somewhere for other developers (wiki or FAQ) ?
I think in case of template.css it is not simple to understand.

kind regards
tanila

from oocss.

tanila avatar tanila commented on June 12, 2024

closing issue ... I see no problems in template.css any more :)
thx

from oocss.

tanila avatar tanila commented on June 12, 2024

...

from oocss.

martinklepsch avatar martinklepsch commented on June 12, 2024

levito's changes are now in stubbornella/oocss.

from oocss.

stubbornella avatar stubbornella commented on June 12, 2024

Levito,

Could you be convinced to add your explanation of the "x x x x" technique in an FAQ question? It was very clear and well written.

Nicole

from oocss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.