If there's one thing I've learnt from web development, it's that people do not take their time to not make it hard on the guys that come after you. Some of the shit I've seen. Sometimes I doubt that some even know how to program.
If there's one thing I've learnt from web development, it's that people do not take their time to not make it hard on the guys that come after you. Some of the shit I've seen. Sometimes I doubt that some even know how to program.
I need some help if possible. This seemed like the new happening web dev/design thread.
So, 2 questions.
1)What is the below image, and the design seen called, where the homepage image occupies 100% of the width of the page? I know there are a lot of variations to sites like this, but I happen to really like this one.
2) I want to find a template that gets me close to this. I can handle the rest of the coding, CSS, implementation and all of that. Can anyone point me in the right direction for it?
Thank you!
I need some help if possible. This seemed like the new happening web dev/design thread.
So, 2 questions.
1)What is the below image, and the design seen called, where the homepage image occupies 100% of the width of the page? I know there are a lot of variations to sites like this, but I happen to really like this one.
2) I want to find a template that gets me close to this. I can handle the rest of the coding, CSS, implementation and all of that. Can anyone point me in the right direction for it?
Thank you!
![]()
When your website has to work across a number of devices, let alone browsers, I can't think of anything worse than using tables. Still, to each their own. I've had to use classic ASP.
Thought about using a framework for site layout? Some of my colleagues swear by Bootstrap.
Definitely swear by Bootstrap.
An old boss of mine got pissed at me when I said he was wrong to use inline styles. I'm glad I don't work there anymore...
Op: You are in the wrong industry, get out.
If you been trying for 12 years and still struggle with CSS, you are in the wrong industry.
Also I get the impression that you fail to understand basic concepts behind CSS layout. I have to admit, even I do not get them but then again, I do not have any problem doing the CSS commercially.
I think the problem you are making is thinking about CSS as tables.
Do not. Make a wrapper and float boxes. Just google it.
I fucking hate float. IT'S USED TO ALLOW TEXT TO FLOAT AROUND AN IMAGE, NOT TO POSITION YOUR ELEMENTS.
I fucking hate float. IT'S USED TO ALLOW TEXT TO FLOAT AROUND AN IMAGE, NOT TO POSITION YOUR ELEMENTS.
Yup. Use display:inline-block; everybody (just remember the white-space.)
Early IEs don't support it, but IE in general can go float itself.
Yup. Use display:inline-block; everybody (just remember the white-space.)
Early IEs don't support it, but IE in general can go float itself.
I fucking hate float. IT'S USED TO ALLOW TEXT TO FLOAT AROUND AN IMAGE, NOT TO POSITION YOUR ELEMENTS.
<div class="floated-column-left">Left Column</div>
<div class="floated-column-right">Right Column</div>
<div class="clear"></div>
.clear {
clear: both;
}
Yup. Use display:inline-block; everybody (just remember the white-space.)
Early IEs don't support it, but IE in general can go float itself.
The trick to floating stuff is this:
Inline-block has the problem of adding font-space. It works but not always.
The white space is enough to make me not use it. Having to throw 0 font sizes on containers, rendering global font sizing useless, or make tags butt up against each other in the HTML feels FAR more hackey than using floats.
Yup, I'd only care about early IE support if you were developing an intranet site for a company still stuck on Windows 98. And I prefer inline-block over float, but as long as it works either is fine I guess (as both require minor hacks to properly work anyways).
To remove the white space, simply delete the whitespace between inline-space'd elements or (I think this works) adding comments inbetween then. It's not the prettiest solution, but it works for me.
The websites I've been developing recently need to be used by people in China.
Yeah.
That and I take some sort of masochistic pride in making my sites work as-close-to-perfect in IE6. All the social/Facebook/etc icons are all fucked up, but as long as all my content displays perfectly (alongside a big-ass red banner saying "Upgrade to fucking Chrome!" of course) then it's all good.
Yup. Use display:inline-block; everybody (just remember the white-space.)
Early IEs don't support it, but IE in general can go float itself.
Eh, floats are fine. I never had too many issues with them except during times when I needed elements to be vertically aligned to each other -- but that's usable with inline-block, but IE8 and older doesn't support that.
The trick to floating stuff is this:
Code:<div class="floated-column-left">Left Column</div> <div class="floated-column-right">Right Column</div> <div class="clear"></div> .clear { clear: both; }
No, that's not a trick. That's a hack, and using floats in ways it was never intended. It ruins so many things, and makes CSS unbearable if you base your designs on floating. It's fucking everywhere, and people have no idea how much they're abusing something that was never meant to be used that way.
Clear is meant for two floating items to not float to each other, as in two images that is supposed to have text floating around them don't float to each other, only the text. Sadly it's just hacked and abused, and it pisses me off.
Sometimes we might have to hack to get CSS to behave correctly (biggest flaw of CSS), so I support floats in certain situations, but the overuse of float is anathema.
The one thing I've struggled figuring out about CSS is the purpose of the position tags. I know they have a purpose, but even going through a college class of mine has still not shown me a practical instance where I'd want to use them.
The one thing I've struggled figuring out about CSS is the purpose of the position tags. I know they have a purpose, but even going through a college class of mine has still not shown me a practical instance where I'd want to use them.
Those frameworks are great if you're mocking other sites. I think they're dandy for quick work. However, customizing them becomes a tiresome nightmare as they are riddled with quirky interdependencies that make changing small things take longer than coding it from scratch. At least in my experience.
If you absolutely position something within something that's relatively positioned, you can force items to be placed relative to the boundaries of that container. Stick them on the right, on the bottom, make them break outside of the box, etc. Great for all manner of situations where you're formatting a tightly designed box of text, icons, or pretty much anything.
I think the worst habit I am forming when it comes to web site design is my heavy reliance on programming in solutions for my roadblocks. I honestly want to just write my entire style sheet in jquery sometimes, it's so much easier.
Float was intended as a method to allow boxes to be aligned to the left or right of their parent with any non-floated adjacent content flowing along the side. While it's unnecessary to have eg <div class="clear"> elements when you can use CSS to achieve the same effect, choosing to only have floated elements in a parent, and / or adding a block-formatting-context to that parent is not a hack, it's a choice. On the other hand, using eg inline-block for content that is not intended to be within a line of text requires you to do more obviously hacky things: manipulating font-size, comments, negative margins, removing closing tags, etc. Hacks that are far less reliable: https://twitter.com/thierrykoblentz/status/305152267374428160No, that's not a trick. That's a hack, and using floats in ways it was never intended.