Forums

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

Home Forums CSS CSS DIV positioning of 3 columns

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #245379
    LambdaEnt
    Participant

    I have created a site using tables with 3 columns, and would like to change it to DIV sections.

    The left and right columns are a fixed size, and should slide vertically as the page is scrolled.

    The center column width needs to expand or contract with the width of the page, and should not slide vertically.

    The contents of all 3 columns are pulled via virtual includes.

    Here is what the page looks like using tables (without the sliding):
    http://www.wordsforall.org/7/testa.shtml

    I have made a first attempt, with only partial results:
    http://www.wordsforall.org/7/testb.shtml

    The CSS code for the column DIV’s are the last 3 entries:
    http://www.wordsforall.org/style.css

    Thank you!

    #245384
    Paulie_D
    Member

    Could you make a demo in Codepen.io rather than linking various sections of code?

    #245420
    LambdaEnt
    Participant

    I did so, but the virtual includes don’t appear. Do you know how to fix this?

    Tables
    https://codepen.io/LambdaEnt/pen/JRYRRr

    DIV
    https://codepen.io/LambdaEnt/pen/ZpbpBL

    #245421
    Paulie_D
    Member

    Try just supplying the actual output HTML…we don’t need the whole page, just enough to demo the problem.

    Oh…and the minimal CSS as well.

    #245426
    I.m.learning
    Participant

    If you need a width to change, you could use width: auto and overflow-x: hidden works for some occasions of stopping the horizontal scroll.

    There are also other ways to go about creating columns. Another option could be setting widths as percents and using media query to control content that will change sizes

    #245476
    LambdaEnt
    Participant

    OK. DIV Is new to me. I was hoping for some more complete formulas.

    #245477
    I.m.learning
    Participant

    Div is a division tag
    Basically use them for grouping block elements to make styling easier.

    #245482
    LambdaEnt
    Participant

    I’m not that clueless! Ive been coding for 10 years, just not used to using DIV. i posted some of what I did. I was looking for someone to actually help me work through and correct the code to do what I need. General question I can look up. I posted a specific situation that I’m hoping to find some assistance with.

    Thank you.

    #245488
    I.m.learning
    Participant

    The only thing I see is you styling the width on a couple items without stating it, but could be set to max min or auto. My phone won’t let me open the pen to edit.

    When I open your page, it looks okay except your image stops. You could look into how frameworks use columns to see if anything helps. Many are using Bootstrap; they have a complex column system. Might be overkill.

    #245489
    I.m.learning
    Participant

    The only thing I see is you styling the width on a couple items without stating it, but could be set to max min or auto. My phone won’t let me open the pen to edit.

    When I open your page, it looks okay except your image stops. You could look into how frameworks use columns to see if anything helps. Many are using Bootstrap; they have a complex column system. Might be overkill.

    #245521
    LambdaEnt
    Participant

    Again, is there someone else here who can actually help troubleshoot the code, not offer generalizations?

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