Conversation started Feb 21, 2016 at 10:37.
Bob
Bob
Feb 21, 2016 10:37
@jokerdino Ok, you can do this one of two ways.
You can do raw CSS, or you can use an existing library like Bootstrap which will have common CSS defined ready for you to use (and customise if desired).
Personally, I'd just grab Bootstrap or similar for a quick project. But doing it raw would help you learn how it all fits together.
Whichever you choose, I can guide you through it. Though it might not happen tonight.
One thing to keep in mind: there's a near-infinite number of ways to do the same thing with CSS.
that's about what I could do with some googling
Adding a table at the bottom should help a bit I think.
Bob
Bob
@jokerdino Yea, first tip: remember that HTML should be semantically correct.
If you're not presenting actual tabular data, you shouldn't use <table>.
Just moving elements around should be kept to CSS as much as possible.
I'm guessing you want to go raw CSS first?
@jokerdino How long will you be here?
Anything to make it stop looking butt ugly.
@Bob 6 to 8 hours.
Should respond to pongs.
Bob
Bob
@jokerdino Ok - I'll be back in ~1.5, and probably completely free in ~3. I'll ping you then. Hopefully won't take more than an hour.
Thanks foxy.
Bob
Bob
Feb 21, 2016 10:43
My goal here is to teach you to do things in the right way (TM) or at least not a complete kludge :P
Just to be clear, you dont recommend a table there?
Bob
Bob
@jokerdino I don't recommend a literal HTML <table>.
The PHP version had a table damnit.
Bob
Bob
The traditional way of doing this kind of thing (correctly) is with HTML <div>s and then CSS display: table, display: table-row and display: table-cells.
I'll see what I can do with this new bit of information.
Bob
Bob
Feb 21, 2016 10:45
Those do the exact same thing as <table>, <tr> and <td> in layout.
But they are more semantically correct.
When people parse the HTML data, they expect a <table> to be an actual table. Like, a list of numbers. Like Excel.
Makes sense.
Bob
Bob
665
Q: Why not use tables for layout in HTML?

Benno RichtersIt seems to be the general opinion that tables should not be used for layout in HTML. Why? I have never (or rarely to be honest) seen good arguments for this. The usual answers are: It's good to separate content from layoutBut this is a fallacious argument; Cliche Thinking. I guess it's true...

@jokerdino Note that this is a bit historical. The modern way of doing things is by using a flexbox. That replaces the old display: table and also many uses of floating elements.
How long until it stays that way?
Something that takes 20 mins to write logic for takes 2 hours to style.
Bob
Bob
One thing you need to know is that, until recently, a lot of layouting was basically hacking around HTML, CSS and JS to get things into the right places.
It's only recently that there's been an effort to improve CSS to allow it to stand on its own - to make it more flexible (pun not intended).
@jokerdino Well, a kludge is always fast. It's just gonna be a pain to maintain later, and might not always work and ... .
oh dear.
Bob
Bob
Feb 21, 2016 10:50
@jokerdino Summing up before I run off for a bit: <table> is wrong when used purely for layout. display: table works but it can be a bit verbose and is a bit inflexible. flexbox can be a bit hard to wrap your head around, maybe, but it's really neat once you start using it.
I dont think anyone's gonna email me about this little shitty project asking for maintenance.
Bob
Bob
lol
Well, if you ever intend on working on bigger projects... :P
Isn't this a learning exercise?
Supposedly.
Already having fun learning JS and CSS.
Actually, fun stopped at JS.
Bob
Bob
Anyway. Running off for a bit.
Feb 21, 2016 10:51
Hmm. Some people have odd ideas of fun. Whatever floats your boat, I suppose.
Bob
Bob
@jokerdino It's not gonna be that hard! :P
Just sounds more complex than it is cause I'm going into all the history here ... would be easier if I provided actual code examples but I'll do that in a bit.
I'll set up git then.
Bob
Bob
@jokerdino This is simple enough that we can use something like jsbin: jsbin.com/?html,output
Then you can see what I type real-time.
Might also be easier to explain by voice but it's up to you if you prefer that or text.
Oh, they disabled collab :\
git because I don't know what I am doing and might mess up something that was working seconds ago.
Bob
Bob
lol, that's a good idea
the git part, not the messing up part
but messing up is part of learning anyway
Feb 21, 2016 10:56
lol did you leave yet?
Bob
Bob
I normally start out with an idea of what I want to achieve, an idea of what css I want to use, then just experiment (w/ google) for a bit. Unless I've done something similar before. At this point the "something similar" list has grown long enough that experimentation is kinda rare.
Uhm... I have this problem with leaving when I should. See also: I'm apparently nocturnal now.
It's well documented that you are nocturnal.
 
Conversation ended Feb 21, 2016 at 10:57.