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: Open-Source Software Is in Crisis IEEE Spectrum Artificial intelligence software at Zuckerberg S.F. General Hospital helps flag stroke risk San Francisco Chronicle DOD taps ‘integrated software enablers’ to help fully realize ambitious Replicator plans DefenseScoop London startup Agemo has exited stealth. Now, it's building AI reasoning for software to take on Poolside and Magic. Business Insider Keysight Providing Software to Enable Researchers through the Microelectronics Commons Business Wire Business Insider's Rating Methodology for Tax Software Business Insider RatedPower expands efficiency and precision with solar project design software release - PR Newswire AV Unveils Advanced Software Updates to Enhance Puma UAS Capabilities in Contested Environments Business Wire The Generative Software Cycle is Here: OutSystems Introduces the Power of Low-Code x AI Business Wire Schrödinger Announces Multi-Target Collaboration and Expanded Software Licensing Agreement with Novartis Business Wire Anduril Lattice Software Enhances US CENTCOM Air Defense Exercise The Defense Post TestSprite nabs $1.5M to build autonomous AI software testing platform SiliconANGLE News LEAP, globally popular software for energy, climate mitigation, and air pollution planning, to be offered free to an additional 54 countries Stockholm Environment Institute Salesforce Loses Top Artificial Intelligence Executive, Says Analyst Investor's Business Daily AI-based ARIA detection software could bring 'renewed hope' for people undergoing Alzheimer's treatment Health Imaging DMDE review: How good is this free data recovery software? Digital Trends Precisely Named a Leader in IDC MarketScape: Worldwide Data Intelligence Platform Software, 2024 Yahoo Finance EasyODM Launches AI-Powered Machine Vision Software Vision Systems Design Epic software helps veterans access VA benefits Verona Press Joget Earns GovStack Software Requirements Compliance ENGINEERING.com Enterprise Software in the Age of Generative AI GP Bullhound Fast 50 2024: Fearless aims beyond software after first acquisition The Business Journals Exclusive | FBI used ‘software tools’ to search social media for election-related talk: analyst New York Post Best Human Resources Software - 2024 Reviews & Pricing Software Advice Amundi buys wealth software firm Aixigo Financial News KIC Launches Game-Changing TAS Software Platform to Address Emerging Thermal Process Challenges AZoRobotics Take-Two Interactive Software Chief Financial Officer Lainie Goldstein Sells 35% Of Holding Simply Wall St MSU, Web Software Engineer II, Bozeman Daily Chronicle Aviation Software Market Revenue to Attain USD 21.55 Bn by 2033 Precedence Research Samsung Galaxy S25 to offer 7 years of One UI software updates: Will you use it for that long? Sammy Fans Indian payments platform Razorpay launches B2B software fund - Global Corporate Venturing Danfoss Power Solutions launches ACL 3.2 software Industrial Vehicle Technology International PTV updates truck route-planning software Traffic Technology Today From self-driving cars to AI that writes enterprise software: Cogna founder raises $15M - TechCrunch Nucleus Software Exports Limited Just Missed EPS By 23%: Here's What Analysts Think Will Happen Next Simply Wall St Montclair Council Passes Cell-Tower Ordinance, Tables Storm Water Regulation and Software Agreement TAPinto.net The Intellectual Property Software Market Reach USD 31.3 Billion by 2032 Growing with 15.6% CAGR EIN News Snyk founder’s Tessl raises $125M to revolutionise AI native software creation with spec-centric model Tech Funding News Danfoss software enables autonomous control Power Progress |
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 |