- This topic is empty.
-
AuthorPosts
-
September 8, 2016 at 5:29 pm #245379
LambdaEnt
ParticipantI 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.shtmlI have made a first attempt, with only partial results:
http://www.wordsforall.org/7/testb.shtmlThe CSS code for the column DIV’s are the last 3 entries:
http://www.wordsforall.org/style.cssThank you!
September 9, 2016 at 1:53 am #245384Paulie_D
MemberCould you make a demo in Codepen.io rather than linking various sections of code?
September 9, 2016 at 11:00 am #245420LambdaEnt
ParticipantI did so, but the virtual includes don’t appear. Do you know how to fix this?
September 9, 2016 at 11:44 am #245421Paulie_D
MemberTry 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.
September 9, 2016 at 5:53 pm #245426I.m.learning
ParticipantIf 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
September 12, 2016 at 10:13 am #245476LambdaEnt
ParticipantOK. DIV Is new to me. I was hoping for some more complete formulas.
September 12, 2016 at 12:35 pm #245477I.m.learning
ParticipantDiv is a division tag
Basically use them for grouping block elements to make styling easier.September 12, 2016 at 1:20 pm #245482LambdaEnt
ParticipantI’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.
September 12, 2016 at 7:39 pm #245488I.m.learning
ParticipantThe 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.
September 12, 2016 at 7:40 pm #245489I.m.learning
ParticipantThe 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.
September 13, 2016 at 10:09 am #245521LambdaEnt
ParticipantAgain, is there someone else here who can actually help troubleshoot the code, not offer generalizations?
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.