Need help from programmers, I am scrub tier learner and need help with my CSS.
How can I get it so have have 3 divs spread across the page, 2 on the left and right with 480px width, and 1 in the centre with 960px width?
Assuming you want your shit to be all relative instead of absolute, you can have the three divs inside of another one with width: 1920px, and then have all 3 of the divs inside with float: left.
Or, if you don't care for it to be relative and are fine with the divs being absolute, well, you can just set their top, left and right properties accordingly.
And go read... let's see... HTML, XHTML and CSS All-In-One For Dummies.
Oh, and by the way, absolute positioning shouldn't be abused unless you know exactly what you're doing, because absolute elements are outside wrapping. Which means that, for example, if you have an absolute div inside a div with a border, the border of the parent div won't contain the absolute div.
Not exactly. Relative positioning means it's going where it should, flowing relatively to the other relative divs. So doing left: 0px is redundant in relative positioning.
For the relative route, assume 4 divs: container, left, center and right.
</div><!-- #container -->
So your css would be like this:
This, of course, could be made more efficient by adding the same class to the 3 inner divs, so you can set their float:left in a single line. Same with other things that might have to be set, like display block and whatnot.
What do you mean "length"?
I'm assuming you mean height? Yeah, the height depends on its contents (and the padding property), unless you actually define the height property. Same with width.
Java a shit.
Seriously, don't program java. It's the cancer killing FOSS via lots and lots of bloat.
But if you - need - to learn it, then just get a java dummies book too.
Though if you - need - to learn it because you wanna program for android, just learn python and kivy instead.
Well I was either gonna learn Java or C++ for object oriented, but if you advise against Java, I'll go elsewhere, and can you explain python? Like I've heard of it but don't know much about it?
And I was gonna learn C# for android.
Python is pretty much pseudocode that can be interpreted, and it's got thousands of extremely powerful libraries.
Give it a go. Try Python Programming for the Absolute Beginner. It covers OOP too.
And the best part is, what you learn in python, you can apply in more complex languages, like C++.
Kids these days.
You actually program your GUI in python - you get to choose the library too (I use kivy, but IIRC, Python Programming for the Absolute Beginner teaches tkinter).
The installer does come with an editor though: IDLE. But I use geany. For a windows user... it's kinda like Notepad++, but better.