Next posts next to each other on Home?
-
Hello,
I’d like to find out how I could code my index page to make my posts posts appear horizontally as opposed to vertically.
Here’s an example of how the final result, when coded properly, would look like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Post Title 3 Blah Blah Blah Blah</title> <style type="text/css"> #posts { width: 620px; margin-right: 5px; padding:0; } #posts h2 { border-bottom: 1px #c2c2c2 solid; margin: 0; padding: 0; line-height: 20px; font-size: 16px; } #posts div { width: 200px; margin-left: 5px; float: left; } #post1 { } #post2 { } #post3 { } </style> </head> <body> <div id="posts"> <div id="post3"> <h2>Post Title 3</h2> Blah Blah Blah Blah BlahBlah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah BlahBlah Blah Blah Blah Blah </div> <div id="post2"> <h2>Post Title 2</h2> Blah Blah Blah Blah BlahBlah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah BlahBlah Blah Blah Blah Blah </div> <div id="post1"> <h2>Post Title 1</h2> Blah Blah Blah Blah BlahBlah Blah Blah Blah BlahBlah Blah Blah Blah Blah Blah Blah Blah Blah BlahBlah Blah Blah Blah BlahBlah Blah Blah Blah Blah </div> </div> </body> </html>
Any thoughts?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Next posts next to each other on Home?’ is closed to new replies.