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: Musk Leaves China With Tesla Driving Software Hurdles Cleared Yahoo Finance UK Reddit Asks the Question: 'What Free Software is So Good You Can't Believe It's Actually Free?' Pajiba Entertainment News Generative AI Software Sales Could Soar 6,260%: My Pick for the Best AI Stock to Buy Now (Hint: Not Nvidia) Yahoo Finance Software support chap survived breaking his customer The Register 2024.3.25 Official Tesla Release Notes - Software Updates Not a Tesla App Tesla's stock leaps on reports of Chinese approval for the company's driving software The Associated Press GitHub Shows Off Copilot Workspace for Building Software from Scratch With Generative AI Voicebot.ai 5 Top-Rated Affordable Medical Practice Management Software Software Advice Spectrum and Hermes Medical Solutions to offer vendor-neutral software Medical Device Network Virtual Surveyor upgrades UAV surveying software GPS World magazine Carbon Accounting Software Market Analysis Report 2024: Growing Investor Interest in Sustainability and Integration of ... GlobeNewswire 2024.14.3 Official Tesla Release Notes - Software Updates Not a Tesla App Apache Software Foundation Announces Keynote Speakers and Schedule for Community Over Code Europe Yahoo Finance Are Check Point Software Technologies Ltd.'s (NASDAQ:CHKP) Fundamentals Good Enough to Warrant Buying Given ... Yahoo Finance UK software sales for the week ending April 27, 2024 Nintendo Everything Germany approves software development of NH90 Naval Technology Software supply chain risks for AI and ML models CyberNews.com A Thinking Ape lays off staff across game design, software engineering, art teams and more Pocket Gamer.Biz Certhon launches lettuce yield forecasting software with 95% accuracy Verticalfarmdaily.com: global indoor farming news Down Payment Resource brings its award-winning homebuyer assistance software to The Mortgage Collaborative as a ... El Paso Inc. Top 5 Software Development Companies in Mexico The Yucatan Times d&b group unveils cloud-based sustainability software - Installation Installation and AV Technology Europe GitHub previews Copilot Workspace, an AI developer environment to turn ideas into software VentureBeat Severe Flaws Disclosed in Brocade SANnav SAN Management Software The Hacker News What's in Store for These 4 Software Stocks This Earnings Season? Yahoo Finance UK IBM in court bid to shut down Software-Defined Mainframe threat to its 'big iron' gravy train Computing Best talent management software in 2024 CNN Underscored Best architecture software of 2024 TechRadar Down Payment Resource brings its award-winning homebuyer assistance software to The Mortgage Collaborative as a ... Send2Press Newswire The 10 Best Accounting Software of 2024 The Motley Fool Isar Aerospace improves 3D printing quality with nebumind software 3D Printing Industry Exclusive | IBM Nears Deal for Cloud-Software Provider The Wall Street Journal Generative AI Software Sales Could Soar 6,260%: My Pick for the Best AI Stock to Buy Now (Hint: Not Nvidia) The Motley Fool The Best Business Accounting Software Services of 2024 Business News Daily NatWest lends £700k to software company in first IP-backed loan - World Intellectual Property Review NatWest lends £700k to software company in first IP-backed loan World Intellectual Property Review The Top 3 Software Stocks to Buy in April 2024 InvestorPlace Scopio Labs gains De Novo clearance for AI bone marrow analysis software and more FDA clearances Mobihealth News Google strangles US Python team FierceWireless Down Payment Resource brings its award-winning homebuyer assistance software to The Mortgage Collaborative as a ... Russellville Courier Check Point Software Reports 2024 First Quarter Financial Results Check Point Software Autodesk, Nemetschek Agree on Greater Interoperability for Design and Construction Software Engineering News-Record Open-Source Software Security Security Boulevard |
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 |