What is Responsive Web Design? Responsive Web Design makes your web page look good on all devices (desktops, tablets, and phones). Responsive Web Design is about. This script expands any image to fill the entire browser screen when clicked on, with option to further zoom in on the image onmousever or tap. I have body { background: url(images/background.svg); } The desired effect is that this background image will have width equal to that of the page, height changing. I want that my background image stretch and scale depending on the browser viewport size. I've seen some questions on Stack Overflow that do the job, like Stretch. CSS Examples. CSS Syntax. The element selector. The id selector. The class selector (for all elements)The class selector (for only < p> elements)Grouping selectors. CSS syntax explained. CSS Backgrounds. Set the background color of a page. Set the background color of different elements. ![]() Set an image as the background of a page. How to repeat a background image only horizontally. How to position a background image. A fixed background image (this image will not scroll with the rest of the page)All the background properties in one declaration. Advanced background example. Background properties explained. CSS Borders. Set the width of the four borders. Set the width of the top border. Set the width of the bottom border. Set the width of the left border. Set the width of the right border. Set the style of the four borders. Set the style of the top border. Set the style of the bottom border. Set the style of the left border. Set the style of the right border. Set the color of the four borders. ![]() Set the color of the top border. Set the color of the bottom border. Set the color of the left border. Set the color of the right border. All the border properties in one declaration. Add rounded borders to an element. Set different borders on each side. All the top border properties in one declaration. All the bottom border properties in one declaration. All the left border properties in one declaration. All the right border properties in one declaration. Border properties explained. CSS Margins. Specify different margins for each side of an element. Let the left margin be inherited from the parent element. The margin shorthand property. Set margin to auto to center the element within its container. Margin properties explained. CSS Padding. Set the left padding of an element. Set the right padding of an element. Set the top padding of an element. Set the bottom padding of an element. All the padding properties in one declaration. Padding properties explained. CSS Height/Width. Set the height and width of an element. Set max- width of an element. Set the height and width of different elements. Set the height and width of an image using percent. Set min- width and max- width of an element. Set min- height and max- height of an element. Dimension properties explained. CSS Box Model. Demonstrating the box model. Specify an element with a total width of 2. Box model explained. CSS Outline. Draw a line around an element (outline)Set the style of an outline. Set the color of an outline. Set the width of an outline. Outline properties explained. CSS Text. Set the text color of different elements. Align the text. Remove the line under links. Decorate the text. Control the letters in a text. Indent text. Specify the space between characters. Specify the space between lines. Set the text direction of an element. Increase the white space between words. Specify a text shadow for an element. Disable text wrapping inside an element. Vertical alignment of an image inside text. Text properties explained. CSS Fonts. Set the font of a text. Set the size of the font. Set the size of the font in px. Set the size of the font in em. Set the size of the font in percent and em. Set the style of the font. Set the variant of the font. Set the boldness of the font. All the font properties in one declaration. Font properties explained. CSS Icons. Font Awesome icons. Bootstrap icons. Google icons. Icons explained. CSS Links. Add different colors to visited/unvisited links. Use of text- decoration on links. Specify a background color for links. Add other styles to hyperlinks. Different types of cursors. Advanced - Create link boxes. Advanced - Create link boxes with borders. Link properties explained. CSS Lists. All the different list item markers in lists. Set an image as the list- item marker. Position the list- item marker. Remove default list settings. All list properties in one declaration. Style lists with colors. Full- width bordered list. List properties explained. CSS Tables. Specify a black border for table, th, and td elements. Use of border- collapse. Single border around the table. Specify the width and height of a table. Set the horizontal alignment of content (text- align)Set the vertical alignment of content (vertical- align)Specify the padding for th and td elements. Horizontal dividers. Hoverable table. Striped tables. Specify the color of the table borders. Set the position of the table caption. Responsive Table. Create a fancy table. Table properties explained. CSS Display. How to hide an element (visibility: hidden)How to not display an element (display: none)How to display a block- level element as an inline element. How to display an inline element as a block- level element. How to to use CSS together with Java. Script to show hidden content. Display properties explained. CSS Positioning. Position an element relative to the browser window. Position an element relative to its normal position. Position an element with an absolute value. Sticky positioning. Overlapping elements. Set the shape of an element. Set the top edge of an image using a pixel value. Set the bottom edge of an image using a pixel value. Set the left edge of an image using a pixel value. Set the right edge of an image using a pixel value. Position image text (top left corner)Position image text (top right corner)Position image text (bottom left corner)Position image text (bottom right corner)Position image text (centered)Positioning properties explained. CSS Overflow. Using overflow: visible - The overflow is not clipped. It renders outside the element's box. Using overflow: hidden - The overflow is clipped, and the rest of the content is hidden. Using overflow: scroll - The overflow is clipped, but a scrollbar is added to see the rest of the content. Using overflow: auto - If overflow is clipped, a scrollbar should be added to see the rest of the content. Using overflow- x and overflow- y. Overflow properties explained. CSS Floating. A simple use of the float property. An image with border and margins that floats to the right in a paragraph. An image with a caption that floats to the right. Let the first letter of a paragraph float to the left. Create an image gallery with the float property. Turning off float (using the clear property)Creating a horizontal menu. Creating a homepage without tables. Float properties explained. CSS Aligning Elements. Center aligning with margin. Center aligning text. Center an image. Left/Right aligning with position. Left/Right aligning with position - Crossbrowser solution. Left/Right aligning with float. Left/Right aligning with float - Crossbrowser solution. Center vertically with padding. Center vertically and horizontally. Center vertically with line- height. Center vertically and horizontally with position. Align properties explained. CSS Combinators. Descendant selector. Child selector. Adjacent Sibling selector. General Sibling selector. Combinator selectors explained. CSS Generated Content. Insert the URL in parenthesis after each link with the content property. Numbering sections and sub- sections with "Section 1", "1. Specify the quotation marks with the quotes property. CSS Pseudo- classes. Add different colors to a hyperlink. Add other styles to hyperlinks. Use of : focus: first- child - match the first p element: first- child - match the first i element in all p elements: first- child - Match all i elements in all first child p elements. Use of : lang. Pseudo- classes explained. CSS Pseudo- elements. Make the first letter special in a text. Make the first line special in a text. Make the first letter and first line special. Use : before to insert some content before an element. Use : after to insert some content after an element. Pseudo- elements explained. CSS Opacity. Creating transparent images. Creating transparent images - mouseover effect. Reversed mouseover effect for transparent images. Transparent box/div. Transparent box/div with RGBA values. Creating a transparent box with text on a background image. Image opacity explained. CSS Navigation Bars. Fully styled vertical navigation bar. Fully styled horizontal navigation bar. Navigation bars explained. CSS Dropdowns. Dropdown text. Dropdown menu. Right- aligned dropdown menu. Dropdown image. Dropdown navigation bar. Dropdowns explained. CSS Tooltips. Right tooltip. Left tooltip. Top tooltip. Bottom tooltip. Tooltip with arrow. Animated tooltip. Tooltips explained. CSS Image Gallery. Image gallery. Responsive Image gallery. Image gallery explained. CSS Image Sprites. An image sprite. An image sprite - a navigation list. An image sprite with hover effect. Image sprites explained.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |