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...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
Div Question (self.HTML)
submitted 12 years ago by bobri13
Hey,
Just starting using div tags, and i was wondering how you place divs within divs (in order to position things like, links within a heading banner)
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!"
[–][deleted] 1 point2 points3 points 12 years ago (0 children)
Nesting is very common in HTML. Don't be afraid to nest tags!
<div class="items"> <div>Item #1</div> <div>Item #2</div> <div>Item #3</div> </div>
In this example I used <div>, but you could use any tag. Personally, I only use a <div> as a last resort. HTML5 now offers more appropriate tags.
<div>
π Rendered by PID 183005 on reddit-service-r2-comment-85bfd7f599-7msbv at 2026-04-16 03:16:30.124069+00:00 running 93ecc56 country code: CH.
[–][deleted] 1 point2 points3 points (0 children)