Template using html and Css

Original with html and css

They are always created with HTML and CSS code. Well, our blogs still look really nasty, don't they? Well, our blogs still look really nasty, don't they? Let's use boatstrap! In order to reinstall a bootstrap, open your .

html executable in the source tree and insert it into the section: "//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min. css" "stylesheet" "//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min. css" This will not cause any additional data to be added to your current configuration. This only points to data that exists on the web.

Eventually, we will take a close look at these things we have called fixed data sets. All your CSS and pictures are statical data sets. Already knows where to find the statical data for the built-in "admin" application. Now, we need to create some statical data for our own application, the Blogs.

This is done by making a directory named statically inside the blogs app: By default, your application will find all directories known as " statically " in every directory of your applications. It will then be able to use their content as statical data as well. First CSS document! Let's make a CSS now, to give your website your own look and feel.

Make a new folder named css in your statical folder. Next, make a new log named blogs. css in this css folder. In your source text box, open the blog/static/css/blog. css command. Example the code for cyan is #000000FF. You should include the following in your blog/static/css/blog. css file:

A CSS filename contains CSS definitions for HTML files. Maybe you recall them as HTML field HTML Tags. You can, for example, recognize the following day by the day name a, the external_link category, or the id link_to_wiki_page: Also we have to tell our HTML template that we have added some CSS.

We' re only uploading statical data here. :) Insert this line between the tag and after the link to the bootstrap CSS files: "<font color="#ffff00">-==- proudly presents

Browsers read the data in the order given, so we need to make sure they are in the right place. If not, the source in our database may be overwritten by source in bootstrap databases. We' ve just informed our template where our CSS is. Now your data should look like this:

"//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min. css" "stylesheet" "//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min. css" "stylesheet" "{% statisch 'css/blog. css' %}". "OK ", saving the data and refreshing the page! Just put this in your CSS, store the files and see how it works! Insert this into your blog/templates/blog/post_list. html file: "//fonts.googleapis.com/css? family=Lobster&subset=latin,latin-ext" "stylesheet" "text/css" As before, verify the order and place the links to blog/static/css/blog.css.

The line imports a Lobster from Google Fonts (https://www.google.com/fonts). Locate a declare pad for your HTML1 ( the stuff between brackets { and }) in the CSS files blog/static/css/blog.css. This allows you to name a part of the HTML source text and applies style only to that part without affecting other parts.

Name only some parts of the HTML source text. Put a category named page-header in your div that contains your headers, like here: "Page header" "/" And now put a grade entry to your Div that contains a blogs entry. Plenty of great CSS web-based tutorials and explanatory notes can help you get the hang of the following piece of work.

Copy it first to your blog/static/css/blog. css file:::::::::::::::,:::::::::::'Lobster', italic;::::::,:::::::::::::::::::::::::::::: ; then enclose the HTML coding that shows the contributions with class declaration.

"Mail" " "" in the blog/templates/blog/post_list. html with it: "Contents Container" "Series" "col-md-8" "Post" "Date" "" Store these data and update your site. Have a look at the source we just inserted to find the places where we added HTML class and used CSS class. Codeacademy HTML & CSS is a free on-line course that we strongly encourage you to attend.

Mehr zum Thema