Skip to main content

How to Use CSS Positioning to Create Layouts Without Tables

There are many reasons not to use tables for layout. One of the most frequent reasons people give for continuing to use them is because it’s hard to do layout with CSS. Although CSS scripting does entail a learning curve, when you understand how to do CSS layout, you might be surprised at how easy it can be. And once you learn, you'll have addressed the second most common reason people give for not using CSS — “It's faster to write tables.” It’s faster because you ​know tables, but once you learn CSS, you might be just as quick with that.

http://hub.cdp.res.in/myspace/showthread.php?tid=571572

http://www.greatwallowners.com/viewtopic.php?t=17149

http://www.greatwallowners.com/viewtopic.php?t=31170

http://www.greatwallowners.com/viewtopic.php?t=28872

http://www.greatwallowners.com/viewtopic.php?t=7728

http://www.greatwallowners.com/viewtopic.php?t=4818

http://www.greatwallowners.com/viewtopic.php?t=32042

https://www.uncutgaming.com/forum/viewtopic.php?t=1167

https://www.uncutgaming.com/forum/viewtopic.php?t=1469

https://www.uncutgaming.com/forum/viewtopic.php?t=1435

https://www.uncutgaming.com/forum/viewtopic.php?t=1327


Browser Support of CSS Positioning

CSS positioning is well-supported in all modern browsers. Unless you are building a site for Netscape 4 or Internet Explorer 4, your readers shouldn’t have any trouble viewing your CSS-positioned Web pages. 

https://www.uncutgaming.com/forum/viewtopic.php?t=1354

https://www.uncutgaming.com/forum/viewtopic.php?t=1083

https://www.uncutgaming.com/forum/viewtopic.php?t=984

https://kaikodai.com/viewtopic.php?t=82123

https://kaikodai.com/viewtopic.php?t=82131

https://kaikodai.com/viewtopic.php?f=13&t=82000

https://kaikodai.com/viewtopic.php?t=81963

Rethinking How You Build a Page

When you build a site using tables, you have to think in a tabular format. In other words, you’re thinking in terms of cells and rows and columns. Your Web pages will reflect this approach. When you move to a CSS positioning design, you’ll start thinking of your pages in terms of the content, because the content can be placed anywhere you’d like in the layout—even layered on top of other content.


Different websites have different structures. To build an effective page, evaluate the structure of any given page before you assign content to it. An example page might include five distinct sections:

https://kaikodai.com/viewtopic.php?t=82090

http://kaikodai.com/viewtopic.php?t=82109

https://kaikodai.com/viewtopic.php?t=82177

http://fireblade.ru/index.php?showtopic=51672

http://fireblade.ru/index.php?showtopic=51575

http://fireblade.ru/index.php?showtopic=51650

http://fireblade.ru/index.php?showtopic=51622

http://www.triadbattle.com/forum/viewtopic.php?t=438805

http://www.triadbattle.com/forum/viewtopic.php?t=435102

http://www.triadbattle.com/forum/viewtopic.php?t=346828

http://www.triadbattle.com/forum/viewtopic.php?t=520381

Header. Home to the banner advertisement, the site name, navigation links, an article title and as well as a few other things.

Right column. This is the right side of the page with the search box, ads, video boxes, and shopping areas.

Content. The text of an article, blog post or shopping cart — the meat-and-potatoes of the page.

Inline ads. The advertisements inline with content.

Footer. The bottom navigation, author information, copyright information, lower banner ads, and related links.


Rather than putting those five elements in a table, use the HTML5 sectioning elements to define the different portions of the content, and then use CSS positioning to place the content elements on the page.

http://www.triadbattle.com/forum/viewtopic.php?t=421349

http://www.triadbattle.com/forum/viewtopic.php?t=220591

http://www.paintball.lv/modules/phpbb/viewtopic.php?f=1&t=194817

http://www.paintball.lv/modules/phpbb/viewtopic.php?f=1&t=194817

http://www.paintball.lv/modules/phpbb/viewtopic.php?f=1&t=208205

http://www.paintball.lv/modules/phpbb/viewtopic.php?f=1&t=194548

http://tdi.pt/forum/viewtopic.php?t=14703

http://tdi.pt/forum/viewtopic.php?t=9258

http://tdi.pt/forum/viewtopic.php?t=21080

http://tdi.pt/forum/viewtopic.php?t=21082

https://www.eroticillusions.com/forum/viewtopic.php?f=34&t=332476

https://www.eroticillusions.com/forum/viewtopic.php?f=34&t=316597

https://www.eroticillusions.com/forum/viewtopic.php?f=34&t=328382


Identifying Your Content Sections

After you’ve defined the different content areas of your site, you need to write them into your HTML. While you can, generally, place your sections in any order, it’s a good idea to place the most important parts of your page first. This approach will help with search engine optimization, as well.

To demonstrate positioning, envision a page with three columns but no header or footer. You can use positioning to create any type of layout you like.

For a three-column layout, define three sections: left column, right column, and content.

https://www.eroticillusions.com/forum/viewtopic.php?f=34&t=329780

https://www.eroticillusions.com/forum/viewtopic.php?f=34&t=326096

https://www.eroticillusions.com/forum/viewtopic.php?f=34&t=327376

https://www.zimmerpflanzenlexikon.info/forum/index.php?topic=4533.0

https://www.zimmerpflanzenlexikon.info/forum/index.php?topic=13026.0

https://www.zimmerpflanzenlexikon.info/forum/index.php?topic=19773.0

https://www.zimmerpflanzenlexikon.info/forum/index.php?topic=517.0

https://www.zimmerpflanzenlexikon.info/forum/index.php?topic=8635.0

https://www.zimmerpflanzenlexikon.info/forum/index.php?topic=9292.0

https://thepack.network/thepackboard/viewtopic.php?t=13526

https://thepack.network/thepackboard/viewtopic.php?t=14597

https://thepack.network/thepackboard/viewtopic.php?t=8808

https://thepack.network/thepackboard/viewtopic.php?p=292

https://en.aoebbs.cn/theme-22469.html

These sections will be instantiated using the ARTICLE element for the content and two SECTION elements for the two columns. Everything will also have an attribute identifying it. When you use the id attribute, you must ascribe a unique name for each id


Positioning the Content

Using CSS, define the position for your ID’d elements. Store your position information in a style call like this:


Content within these elements will take up as much space as it can, namely 100 percent of the width of the current location or the page. To affect the location of a section without forcing it to a fixed width, change the padding or the margin properties.

https://en.aoebbs.cn/theme-22312.html

https://en.aoebbs.cn/theme-22622.html

https://en.aoebbs.cn/theme-22291.html

https://www.chiens-chats.be/forum/viewtopic.php?t=27069

https://www.chiens-chats.be/forum/viewtopic.php?t=10075

https://www.chiens-chats.be/forum/viewtopic.php?&t=17359

https://www.chiens-chats.be/forum/viewtopic.php?t=10942

https://www.chiens-chats.be/forum/viewtopic.php?t=9715

https://www.chiens-chats.be/forum/viewtopic.php?t=3706

https://www.chiens-chats.be/forum/viewtopic.php?t=19710

https://www.chiens-chats.be/forum/viewtopic.php?t=14690

https://www.chiens-chats.be/forum/viewtopic.php?t=23086

https://www.defuse.ro/forum/viewtopic.php?f=14&t=8256

https://www.defuse.ro/forum/viewtopic.php?f=14&t=21569


For this layout, set the two columns to fixed widths and then set their position absolute, so that they wouldn’t be affected by where they are found in the HTML.


Then for the content area, set the margins on the right and left so that the content wouldn't overlap the two outside columns.

https://www.defuse.ro/forum/viewtopic.php?f=14&t=21277

https://www.defuse.ro/forum/viewtopic.php?f=14&t=21339

https://www.defuse.ro/forum/viewtopic.php?f=14&t=22007

https://www.defuse.ro/forum/viewtopic.php?f=14&t=21261

https://www.hoaxbuster.com/forum/viewtopic.php?t=2760

https://www.hoaxbuster.com/forum/viewtopic.php?t=2792

https://www.hoaxbuster.com/forum/viewtopic.php?t=2759

https://www.hoaxbuster.com/forum/viewtopic.php?t=2762

https://www.hoaxbuster.com/forum/viewtopic.php?t=2747

https://www.hoaxbuster.com/forum/viewtopic.php?t=2765

http://www.zealousmodel.com/index.php?topic=163602

Defining your page using CSS instead of an HTML table requires a bit more technical skill, but the payoff follows from more flexible and responsive designs and greater ease in making structural adjustments to your page later.

Comments

Popular posts from this blog

How to Get Classic Solitaire for Windows 10

Ever since Windows 3.0 was released in 1990, a free version of solitaire has been included with the Windows operating system. In fact, it was once the application for Windows. https://www.burnleychat.co.uk/forum/showthread.php?tid=7&pid=8 http://omniwebit.com/KevinForum/Upload/showthread.php?tid=209605 https://imaginoproject.com/bb/showthread.php?tid=3523 http://www.scifidig.com/forums/showthread.php?tid=221961&pid=296689#pid296689 http://freebitcoin.co/forum/showthread.php?tid=841295 http://nhulit2.nhu.edu.tw/community/viewtopic.php?CID=4&Topic_ID=75 https://thehiphophub.ning.com/forum/topics/http-t-rexmuscleadvice-com-stack-testo-boost-360-16 Solitaire is actually a name referring to any card game played by a single person with a single deck of cards. Classic solitaire is a specific version, also known as Klondike.What Is Classic Solitaire? In classic solitaire, 28 cards are dealt face-down into seven columns with one card in the first column, two in th...

How to Activate Disney+ on Your Device: A Simple Guide

 Disney+ offers an extensive collection of content, including beloved movies and shows from Disney, Pixar, Marvel, Star Wars, and National Geographic. Whether you're looking to catch up on classics or explore new releases, activating your Disney+ account on your device is the first step. Here’s a step-by-step guide to help you get started. How Do I Sign Up for Disney+? Before activating Disney+ on any device, you need to have an active subscription. If you’re new to Disney+, head over to Disney+ and sign up. You’ll need to provide your email address and select a subscription plan that fits your preferences. Once you’ve created your account, you’re ready to activate Disney+ on your devices. https://destinycard-com-activate.gorgias.help/en-US https://myuhccomcommunityplan.gorgias.help/en-US https://healthfirst-provider-portal.gorgias.help/en-US https://healthfirst-provider-portal.gorgias.help/en-US https://irs-8700-stimulus-check.gorgias.help/en-US https://cigna-provider-portal.gorgi...

The Intersection of Destiny, Technology, and Security

In today’s digital world, entertainment, productivity, and security are deeply intertwined. Services like Roku, Hulu, and Amazon offer an endless variety of streaming options, making it easier to access movies, TV shows, and exclusive content from anywhere. Whether you're watching a show on Hulu, using Roku to stream your favorite movies, or exploring the immersive universe of Destiny, these platforms have revolutionized how we consume entertainment. https://portalsolutions.groovehq.com/help https://online-help-line.groovehq.com/help https://phonelinkhelp.groovehq.com/help https://avgsafe.groovehq.com/help/how-do-i-activate-avg-antivirus-using-a-product-license-key https://huluchannels.groovehq.com/help/how-to-activate-hulu-on-your-device https://huluchannels.groovehq.com/help/how-do-i-activate-hulu-on-my-device https://hbomaxconnect.groovehq.com/help/how-to-sign-in-and-activate-hbo-max https://hbomaxconnect.groovehq.com/help/how-to-sign-in-to-hbo-max https://portalsolutions.groove...