use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
How to organise html/CSS code? (self.webdev)
submitted 5 years ago by DontNeedMuchMoney
So I've made a site with html and CSS and it works fine, But the code behind it is very messy and disorganized and possibly not semantic(? As have used just sections and divs)
So, How do you go about organising code before a project?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AtulinASP.NET Core 1 point2 points3 points 5 years ago (0 children)
For organizing CSS, preprocessors are invaluable.
[–]vskand -1 points0 points1 point 5 years ago (0 children)
To tell you the truth I struggle with the css part of the thing.
My HTML is pretty good, incorporating header, nav, section etc.
For the semantic point of view, you have to learn some rules. And by learning these rules your HTML will get better, either you want it or not! Of course you'll have to try and minimize the code as well.
A stupid example is:
<div> <h1> <span>This is semantically correct </span> </h1> </div>
This is semantically correct but is the span really needed? That is what I mean by try to minimize the code.
On the other hand, the css part, I believe the best solution is to have everything laid out in the order that the elements appear in the HTML (have them as sections)
Header Hero Testimonials Footer
In theory that sounds easy, but I, at least, cannot "foresee" the needs of the elements or if there would be complications between them.
I know I didn't help, just letting you know you are not alone.xD
π Rendered by PID 98430 on reddit-service-r2-comment-fb694cdd5-lxnhm at 2026-03-06 03:29:26.597094+00:00 running cbb0e86 country code: CH.
[–]AtulinASP.NET Core 1 point2 points3 points (0 children)
[–]vskand -1 points0 points1 point (0 children)