Forums

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

Home Forums CSS [Solved] Responsive website for a small game

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #191659
    tarnos12
    Participant

    Hey, I am trying to achieve something similar to my current html code:

    http://tarnosdaking.esy.es/public_html/

    I have read alot about bootstrap/css but there are so many options I am confused, I want to achieve similar result which you can see on the link, but I want it to work on all or at least most resolutions.
    Currently all tables and fonts stay on the same size, on lower resolutions they collide with each other.
    If question is too vague then dont give me a straight answer but help me out with some resources I can read or tell me If I should use tables in my case or if there is a better way to do it.
    I tried using div class row etc but I couldnt move a button or anything at all.
    I hope you can help me out, or point me to a specific tutorial. Thanks

    #191663
    GSutherland
    Participant

    Cool project.

    You’re using position: absolute to achieve your current layout, and this is generally frowned upon. It will also make it nigh impossible to achieve any sort of adaptive or responsive layout. Most grid and layout systems work with floating items left and right, which I see your tables are. But there’s not much purpose to floating them when you then position them absolutely.

    This is a good primer on basic layout approaches:
    http://learnlayout.com/

    In the case of your project, I do think using tables to display the information makes sense, but you can enclose them within divs in order to control the flow of the layout.

    It’s definitely true that there’s a lot of information out there, but if you’re going to use Bootstrap they do have pretty good documentation. Here’s their docs on tables:
    http://getbootstrap.com/css/#tables

    If you combine that with their grid scaffolding system you should be able to pretty quickly put together a more adaptive version of what you have.
    http://getbootstrap.com/css/#grid

    Keep in mind that Bootstrap will impose a certain aesthetic onto your application if you go that route.

    #191672
    tarnos12
    Participant

    Hey, thanks for all the links. I will do my best to change the look of my website, in the meantime I updated the game if you’d like to check it out. There is also a reddit thread:
    http://www.reddit.com/r/incremental_games/comments/2qbj55/i_am_working_on_an_rpgincremental_game_in/

    Thanks again :)

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