![]() |
|
CSS styling the blog - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: CSS3 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=5) +--- Thread: CSS styling the blog (/showthread.php?tid=69) |
CSS styling the blog - Derp - 08-29-2020 If you didnt see my HTML Marking UP the blog post watch it before you watch this post Code: /* i tag color */Code: i {my" i " tags to print out text in red colors Code: .sidebar {well to call it in css use .your class { } as you see in the code The CSS Code: marginWith CSS, you have full control over the margins. There are properties for setting the margin for each side of an element (top, right, bottom, and left). All the margin properties can have the following values: 1- auto - the browser calculates the margin 2- length - specifies a margin in px, pt, cm, etc. 3- % - specifies a margin in % of the width of the containing element 4- inherit - specifies that the margin should be inherited from the parent element Also Negative values are allowed. To shorten the code, it is possible to specify all the margin properties in one property. Code: marginproperty is a shorthand property for the following individual margin properties:
If the Code: marginproperty has four values:
Code: paddingproperties are used to generate space around an element's content, inside of any defined borders. With CSS, you have full control over the padding. There are properties for setting the padding for each side of an element (top, right, bottom, and left) it also has the same use case as margin The Code: floatproperty is used for positioning and formatting content e.g. let an image float left to the text in a container. The Code: floatproperty can have one of the following values:
Code: floatand if you copy my css and html codes your page should be looks like that |