Om CSS side layouts

From Joomla! Documentation

This page is a translated version of the page About CSS page layouts and the translation is 60% complete.

Delete-icon.png
This Page is a Candidate for Deletion

This page is a candidate for deletion. The given reason is: This page is orphaned. The information, while relevant and well written, might be better placed elsewhere like https://docs.joomla.org/More_advanced_Joomla!_templates, rather than being an article on its own.

This notice should remain for a minimum of 1 week after it was placed on the page. If discussion is still ongoing, it should remain until a consensus is reached, after which the page will either be deleted or this notice removed. If you disagree with its deletion, please discuss your reasons on its associated talk page, as applicable.

Remember to check if anything links here and the page history before deleting.

Last edit by Rbuelund (talk · contrib) · Last edited on Fri, 29 Jan 2021 01:22:17 +0000
Other languages:
العربية • ‎অসমীয়া • ‎বাংলা • ‎dansk • ‎Deutsch • ‎English • ‎español • ‎فارسی • ‎français • ‎हिन्दी • ‎Bahasa Indonesia • ‎italiano • ‎Nederlands • ‎Nederlands (informeel)‎ • ‎português • ‎português do Brasil • ‎română • ‎русский • ‎中文(台灣)‎

Professionelle websteder separerer styling fra indhold. Der er mange grunde til at gøre det, og den mest øjensynlige (for en udvikler) er at være i stand til at kontrollere udseendet af mange sider ved at ændre en enkelt fil. Styling information inkluderer: fonte; baggrunde; billeder (som går igen på alle sider); placering og dimensioner af elementer på siden. Din HTML fil vil nu kun være med: header information; en række elementer; teksten på dit websted. Fordi du oprette en Joomla! skabelon, så vil du faktisk have: noget header information; php kode der efterspørger resten af header informationen; en række elementer; php kode der efterspørger hver modulposition; php kode der efterspørger hovedindholdet.

Style information bliver kodet i CSS, cascading style sheet, og gemmes normalt i filer med endelsen .css. En webside indeholder et link til den associerede .css fil, så browseren kan finde den passende stil information der skal anvendes på siden. CSS kan også placeres i selve html filen mellem <style type="text/css"></style> tags.

All CSS code is applied to an element of the html/xml page. If you want a style to encompass a whole page, you would probably apply it to the <body> element. You can apply styles to any html element such as <p>, <table> or <div> elements. To style a particular element it needs to have an ID. For example, to apply styles to the <div> containing the title, you would first include an ID in the html - <div ID="title">.