![]() | |
![]() | |
![]() |
Software Information |
|
![]() |
How to Build a Basic CSS Layout
Designing without tables by using CSS layouts is fastbecoming the new standard on the Web because of thebenefits mentioned in my previous article. Web browsersused these days are now able to render web pagesproficiently. In this article I will endeavor to create abasic 2 column CSS layout which you can use for futuredesign projects. Web Page: http://www.isitebuild.com/css/css-layout.htmlStyle Sheet: http://www.isitebuild.com/css/stylesheet.htm 1. Divide your page into sections - the div id tagsallows you to create distinct divisions on your web page.They are identified with a unique id. You can then add astyle (css selector) that specifically applies to the divof that id. Remember to include the DOCTYPE (to render yourpage accurately in the browsers) and meta tags (enablessearch engines to spider your pages). wrapper: is the div that wraps around all the other divslike a container for the page elements.header: defines the top banner of the pagemain: defines the main content of the pagenav: defines the navigation of the pagefooter: defines the footer and sub-navigation of the page 2. Create the CSS code - the CSS code styles the page as a centered 2 column CSS layout with a navigation bar and a footer. The div#wrapper style creates the centered box which acts as a container for the rest of the page content. The width: 80% rule sets the width of the div. The background-color:#FFFFFF rule creates a white background for the div. The margin-top: 50px andmargin-bottom: 50px rules create a space of 50 pixels forthe top and bottom margins for the div itself. The proper way to center a block-level element with CSS isto set margin-left: auto and margin-right: auto. Thisinstructs the browser to automatically calculate equalmargins for both sides, thus centering the div. The border:thin solid #000000 rule adds a border around the outer div.The rest of the CSS code styles the divs for the header,footer, nav, and main content. The div#header and div#footer styles set margins andpadding for those divs. In addition, div#header includesthe text-align: center rule to center the header text, anddiv#footer includes the border-top: thin solid #000000 ruleto create a border along the top edge of the div to replacethe horizontal rule above the footer in the table-basedlayout. The div#nav and div#main styles create the two columns inthe middle of the centered box. In the div#nav style, thefloat: left rule pushes the div to the left side of itsparent element (the wrapper div), and the width: 25% rulesets the div's width to 25 percent of the parent element.With the nav div floated to the left and limited to a setwidth, it leaves room for the main div to move up to theright of the nav div, thus creating the two-column effect.The div#main style includes the margin-left: 30% rule tokeep the main text aligned in a neat column instead ofspreading out below the nav column. The main div's leftmargin is set to a value slightly larger than the width ofthe nav div. Style Sheethttp://www.isitebuild.com/css/stylesheet.htm If links are placed elsewhere on the page they will inheritthe same properties as above..a blue link that hovers tored. What if you wish to create another set of links thatare a different color and on passing your mouse over themthey are underlined. 4. Create the bottom navigation - to include this in the section of the page, I use div#footer andcode each link accordingly. To make the list gohorizontally I use: display: inline; Now that I have finished creating my style sheet I want toshorten the code on page by linking it to my external stylesheet. Here's how: 4. Create an external style sheet - copy and paste all thecss code (without these tags: ) into notepad and label it something like"style sheet". Place this style sheet between the head tagsof your web page. This will reduce the code on your page so it will load fastplus the search engines can more easily spider your webpage. 4. Add content to your page - after you have got your pagelooking correctly, you can add more content to it.Adjustments can easily be made to any style on the page (oryour whole site) by simply editing one style sheet. 5. Upload your files - be sure to upload your web pages andstyle sheet to the root directory of your server. 6. Validate your code - be sure to validate your xhtmlcode: http://validator.w3.org/ and css code:http://jigsaw.w3.org/css-validator/ and make correctionswhere necessary. 7. Check browser compatibility and screen resolution -check that your page renders well in the popular browsers(IE6, NN7, Firefox) If you are beginning with CSS layouts, implement thenslowly by making small changes to your pages i.e. creatinga style sheet for your main headers and fonts only. As youbecome more familiar with CSS you may eventually build allyour future sites with CSS layouts. Resources: Basic CSS layout CSS Style Sheet Benefits of CSS Herman Drost is the Certified Internet Webmaster (CIW)owner and author of http://www.iSiteBuild.com AffordableWeb Site Design and Web Hosting. Subscribe to his "Marketing Tips" newsletter for more original articles.mailto:subscribe@isitebuild.com. You can read more of his in-depth articles at: http://www.isitebuild.com/articles
MORE RESOURCES: Siemens acquires Dotmatics Siemens Digital Industries Software Newsroom Software Engineer Dassault Systèmes Devin 2.0 is here: Cognition slashes price of AI software engineer to $20 per month from $500 VentureBeat The software engineers willing to pay $10,000 to anyone who helps them land a 6-figure coding job Business Insider Portland hears polarizing testimony on policy to ban rent pricing software Oregon Public Broadcasting - OPB Software company helped Washington landlords fix prices, artificially raising rent for thousands KING5.com Washington AG takes software company to court over rental price-fixing allegations Oregon Capital Chronicle City of South Lake Tahoe unveils new development permit processing software TahoeDailyTribune.com 5 Best Accounts Receivable Software of 2024 TechRepublic Washington AG sues rental software firm over alleged price fixing Nonstop Local News City agrees to purchase software to simplify permitting process News Radio KMAN Hexagon acquires Geomagic software business from 3D Systems Engineering.com Vertosoft Named Illumio's Newest Software Distributor for the Public Sector, Enhancing Cybersecurity Capabilities Yahoo Finance LCG launches new public records request software KADN News 15 Data Center Cooling: PFCC and ENEOS Collaborate on Materials R&D with NVIDIA ALCHEMI Software insideAI News Atlassian: A High-Quality Software Company With AI Tailwinds The Motley Fool RealPage software allegedly conspired with landlords to inflate rent prices, WA AG claims MyNorthwest.com Design Firms Leveraging Software in Key Areas: Survey Kitchen & Bath Design News Simerics, Tech Soft 3D announce Simerics-CAD software Engineering.com Emerson's Asset Management Software Unifies Equipment Reliability Data From: Emerson Manufacturing Business Technology CyberArk Software (NasdaqGS:CYBR) Gains SOC 2 Compliance For Secure Browser Innovation Yahoo Finance Microsoft CTO breaks down how he sees software developer jobs evolving in the next 5 years Business Insider Details Flowers Software Celebrates 10 Years of Business Perishable News Intersolar Europe 2025: Valentin Software with new program versions of PV*SOL premium and GeoT*SOL AltEnergyMag Playing ‘DOOM: The Dark Ages’ Has Me Convinced That id Software Are Wizards (Hands-on Impressions) VICE From Software Unveils Multiplayer-Focused Switch 2 Exclusive Soulslike 'The Duskbloods' [Trailer] Bloody Disgusting Lucid Software Expands Visual Collaboration with First Work Acceleration Platform for Business Transformation Longview News-Journal Critical vulnerability in CrushFTP file transfer software under attack Cybersecurity Dive Crow Canyon Software Hosts Free Webinar on Forms & Workflow Automation Software in Microsoft 365 & Teams The Victoria Advocate Hexagon finalizes acquisition of Geomagic software Canadian Metalworking As EdTech growth continues, this enterprise is doubling down on tailored software solutions for teachers StartUp Beat Reap the Rewards of Open-Source Software Electronic Design Hexagon Supercharges Design, Manufacturing Productivity with Geomagic Software Acquisition Quality Magazine State seeks vendor to update decades-old financial software Hawaii News Now Enterprise software stocks sink, led by Atlassian, as new tariffs could prompt spending slowdown (PLTR:NASDAQ) Seeking Alpha Remembering Microsoft’s other co-founder: How Paul Allen’s vision sparked a software revolution GeekWire 3D Systems completes sale of Geomagic software portfolio to Hexagon for $123 million Metal Additive Manufacturing magazine 3 Leading Computer Monitoring Software for Schools Security Boulevard Insight Partners seals $5.1bn exit from Dotmatics in Siemens software acquisition Private Equity Insights Durst announces acquisition of callas software Label and Narrow Web Website Monitoring Software Market Is Booming Worldwide with SolarWinds, Datadog, UptimeRobot openPR.com Synthetic Media Software Market Size Trends and Forecast by Application, Type, and Geography openPR.com |
![]() |
![]() |
![]() |
RELATED ARTICLES
What is Fleet Maintenance Management? Fleet Maintenance Management is a critical position in any company that has a number of commercial vehicles. The individual responsible for the management and maintenance of fleet vehicles performs a variety of functions. Microsoft C# vs. VB.Net Hi, Guys,I believe a lot of programmers are trying to speculate which Microsoft language is the language of the future .Net applications. Top Questions to Ask Before Buying a Help Desk & Asset Management Software #5 All your hardware components like Printers, PCs etc come under various maintenance contracts with different maintenance vendors. Do you know which batch of PCs are under warranty & for what number of PCs is the warranty about to expire (so that you can plan for an AMC)? Can you split up & tell how much AMC charges do you pay for each hardware component & how much for each vendor? Can you re-calculate the costs if an AMC with a vendor is to be renewed?#4 Typically your company gets hardware parts and accessories from different vendors. Instant Messaging is a Sweet Way to Communicate MSN messenger is a pretty cool invention. I mean I'm not really into serious discussions on the email, answers to questions can often take a few days to arrive because people are so busy these days. Beware of Spyware One day, you suddenly realize that your computer started to worknoticeably slower than it used to. You decide to run de-fragmentation of your hard drive and add more virtual memory to the system. How the Firefox: How to... Manual Helped Me A few months back I really got sick of my computer always being slow and having system errors. So I started doing a bit of research and heard of a new browser called "Firefox". Microsoft Great Plains Integration Manager - Working With Text File Microsoft Business Solutions main middle market ERP application - Microsoft Great Plains has multiple integration options: MS SQL Scripting (stored procedures and views), ADO.Net programming, Microsoft SQL Server DTS packages. Microsoft Great Plains: Annual Enhancement Program - How To Be Re-Enrolled Microsoft Business Solutions Great Plains is mid and even corporate market ERP and as being relatively complex and difficult to do self-support in-house, Microsoft Business Solutions requires you first to have so-called VAR of record, or your MBS partner and second - pay annual enhancement program, which is typically 16% of you software price list. Enhancement program allows you to get new version of the product as well as purchase and add new modules you might need. Make or Break Factors - When Considering Estimating Software Make-or-Break Factors in Success and ProfitabilityFor quick printers, estimating can prove to be a major factor in the success or failure of their business.When a customer requests a bid on a job, they need a fast turnaround, and the best price. Photoshop Files and Formats People often ask me: What image file formats will Photoshop open or save in? What are the advantages/disadvantages?Photoshop has the capability to open and save many different graphic files. Here are some of the most popular ones. FreeDOS Before September 1995, Microsoft Windows was an MS-DOS program. DOS was an easy to use command line operating system that provided you with complete ability to control and troubleshoot your computer. Four Desktop Tools To Drastically Increase Your Productivity Sticky Noteshttp://www.deprice. Open Source Concepts: Dual Licensing Explained We were recently faced with a decision: either to let a program that took us one year to code die, simply because we do not have enough time to maintain it, or make it open source.Open source looked like a good idea for while, but there was one problem. Great Plains Dexterity Programming - Overview For Developer Looks like Microsoft Great Plains becomes more and more popular, partly because of Microsoft muscles behind it. Now it is targeted to the whole spectrum of horizontal and vertical market clientele. Editing Your Photos Using Microsoft Picture It Publishing Platinum 2002 - A Great Dinosaur I started using PIP (Picture It Publishing) Platinum 2002 right after I got it in a bundle with my HP Pavallion N5295 Notebook more than several moons ago!I don't want to be a rocket scientist to produce edited photos quickly and with quality results, again and again.I had a terrible time at first with the edited pictures. Microsoft CRM Implementation - US Market Lessons Microsoft CRM is CRM answer from Microsoft Business Solutions. If you compare it to other traditional CRM applications, such as Siebel - you will see that Microsoft CRM does use all the resent Microsoft technologies, that means that Microsoft targets its CRM to Windows market exclusively, plus this means that Microsoft CRM is more difficult in its installation. Free Microsoft Word Online Training Tutorial Resources Microsoft Word is one of the most popular office applications that provide many features such as word processing, web publishing and database creation. Tapping into these Word resources, however, is not always easy and straightforward, leaving users stumped and puzzled. Increase Office Efficiency With One Simple Tool When you need a phone number, you do a quick search on the Internet and in a few seconds, you've got the information you need. And you probably receive a lot of contact information right inside the emails you receive every day. Windows x: Basic Windows "Security" Issues Language development computer:Computer-based method for aiding language development seems like an interesting idea, the trick with this would be in getting the computer to take on part of the role of the human in the checking process.In all computer aided learning applications aimed at the very young, there is a danger that the computer may be seen as a replacement for a human instructor, however computer are notorious for not volunteering information or inability to deal with erratic behaviour. The Bluebird Project The objective for Zandi Digital is to make available clever programs to end-users that want and need something more diverse. Bluebird is the current application being developed by Zandi Digital. ![]() |
home | site map |
© 2006 |