Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Completely custom table style?

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #45602
    miturian
    Member

    Hello, my friend and I are both pretty inexperienced with web design, and as we enjoy learning-by-doing, we have designed a small project for ourselves wherein we wish to design a bookshelf with a varying number of displayed books (think ios newsstand kind of layout).

    However, we are rather unsatisfied with the table stylings available (pretty much anything which comes up at a google-search of “custom table css”). We were thinking that one way to get what we want would be if we were able to overlay images on top of the “table graphics” – meaning column and row dividers. We would also like to make the whole thing interactive, such that a hover over one book would enlarge it.

    Is this possible, and are we attacking the problem in the right way? Is CSS the right way to be thinking about this, or should we be looking into some other web-related technology? As the the size of the table should depend on the content, we were thinking that the html-code would be generated with some javascript once the number of books was known.

    Constructive criticism will be much pondered :)

    #139133
    Paulie_D
    Member

    Is there a reason why you are using a table?

    I’m not saying it’s actually wrong in this situation (as I understand it) but there are, perhaps better layout options with simpler methods.

    #139161

    I agree with Paulie_D. I think using a table might not be as rewarding as creating your own layout. I think as he said it would simplify things in the long run.

    #139194
    miturian
    Member

    There is no particular reason why we would prefer tables, only that it seemed sensible, as the layout we are considering is tablesque. What is the alternative? Lots of div’s? Do you know of any examples, here or somewhere else, where we might see how to build a layout like this from the bottom?

    Thanks in advance :)

    #139196
    Paulie_D
    Member

    >What is the alternative? Lots of div’s?

    Yes….but with a table you have lots of cells so it’s as pretty much the same.

    However with divs you have much more flexibility in terms of layouts, Css targeting and browser size behaviours with Media Queries etc.

    If you have design mock-up it would enable us to help you a lot more if you cold let us have a look.

    #139235
    miturian
    Member

    The “lots of divs” was meant completely non-sarcastically. I’m sorry if it came across differently. A mock-up of the layout can be seen here: http://www.kaarebmikkelsen.dk/example.

    #140623
    miturian
    Member

    So.., is it possible that someone could take a look at our mock-up and comment? What is the proper way of getting this kind of layout?

    thank you in advance!

    #140624
    Kitty Giraudel
    Participant

    > However with divs you have much more flexibility in terms of layouts,

    True. You can make div’s behave like tables and table-cells. Opposite is not true.

    #140661
    Paulie_D
    Member

    >What if you want a grid-like structure with flexible heights, where the whole structure functions like a grid regardless of the amount of content in each cell/sub-div/li?

    Masonry.js

    #140675
    Paulie_D
    Member

    Getting back to the example provided (http://www.kaarebmikkelsen.dk/example/)

    Floated Divs would be fine for that.

    #140818
    miturian
    Member

    Thank you very much, the comments are much appreciated!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘CSS’ is closed to new topics and replies.