Udacity - Intro to HTML/CSS
HTML์ ์ง์ ๊ตฌ์กฐ์ ๊ฐ๊ณ , CSS๋ ์ง์ ๋์์ธ๊ณผ ๊ฐ๋ค.
ํธ๋ฆฌํํ๋ก ๊ตฌ์กฐ๊ฐ ์ด๋ฃจ์ด์ ธ์๋ค.
HTML-CSS-DOM
HTML - HyperText Markup Language - the standard markup language used to create web pages.
tag -> elements in tree
<tag> content </tag>
ํํ๋ก ๋์ด์๋ค.CSS - Cascading Style Sheets - style sheet language used for describing the look and formatting of a document written in a markup language.
DOM - Document Object Model - a cross-platform and language-independent convention for representing and interacting with objects in HTML (and other markup languages). The nodes of every document are organized in a tree structure, called the DOM tree.
Boxes, Grids and Rules
๋ชจ๋ ๊ตฌ์กฐ์ ์์๋ ์ง์ฌ๊ฐํ๋ชจ์์ผ๋ก ๋์ด์๋ค.(grid) boxes๊ฐ ์ด๋ป๊ฒ ๊ตฌ์ฑ๋์ด์๋์ง ์ฐพ์๋๋ ํฐ๋ถ๋ถ์์ ์์๋ถ๋ถ์ผ๋ก ์ฐพ์๊ฐ๋ผ!(์ฐํ๋ก) boxes๋ ๋ค์ํ ํฌ๊ธฐ, ์์น์ ์๋ค. ์ด๋ป๊ฒ ๊พธ๋ฐ๊น?
"Cascading" means that rules are applied not only to the elements they directly match, but also to all of those elements' child elements. However, if a child element has multiple, overlapping rules defined for it, the more specific rule takes effect.

margin์ boxํฌ๊ธฐ์ ํด๋น๋์ง ์๋๋ค.
Positioning Boxes
Look for natural boxes
Look for repeated styles and semantic elements
write your html
appply styles(from biggest to smallest)
fix things
Grid Based Design
CSS frameworks
: collections of CSS classes that make page layout easy to implement framework๋ ๊ธฐ๋ณธ์ ์ธ ์ค๊ณ์ ๊ธฐ๋ฐ์ด ๋๋ ๋ถ๋ถ์ ์ง์๋ฐ๋ ๊ฒ์ด๋ฉฐ, ๊ฐ๋ฐ์๋ ๊ทธ framework๋ฅผ ์ด์ฉํด ๊ตฌํํด์ผํ ์ปจํ ์ธ ๊ฐ๋ฐ์ ์ง์คํ ์ ์๋ค.
Responsive Web Pages
์ฌ๋๋ค์ด ์ฌ์ฉํ๋ ๊ธฐ๊ณ๋ ๊ฐ๊ฐ ๋ค์ํ๊ณ ํ๋ฉด์ ํฌ๊ธฐ๋ ๋ค์ํ๋ค. ๊ทธ๋ฌ๋ฏ๋ก ๊ทธ๊ฒ์ ๊ณ ๋ คํด์ responsive web page๋ฅผ ๋ง๋ค์ด์ผํ๋ค. ๋ชจ๋ฐ์ผ์ด๋ ํ ๋ธ๋ฆฟ์ ๋ง์ฐ์ค๊ฐ ์๋ ์๊ฐ๋ฝ์ ์ด์ฉํ๋ค๋ ๊ฒ๋ ๊ธฐ์ตํ๊ณ ์์ด์ผํ๋ค.
pixel๋ก ์ง์ ํ ์๋ ์์ง๋ง %๋ก ์ง์ ํ ์๋ ์๋ค.
Having 12 columns would allow all of the mentioned layouts.
css๋ .row of 100% page width, colums of 1/12~12/12 page width๋ฅผ ์ด์ฉํด ๋ง๋ ๋ค.
overflow: auto;
๋ ์๋์ผ๋ก ๋์ด๊ฐ ๋ถ๋ถ์ ์คํฌ๋กค๋ก ๋ํ๋๊ฒ ํด์ค๋ค.!
Media Queries : change CSS properites depending on device, scereen size and color.
normalize.css : this will help ensure that your CSS sytles are interpreted the same across all browsers.
<link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css">
Bootstrap
Minified CSS Files
To use the Bootstrap files in your project just copy the css and js folders to your project folder.
minified CSS files๋ ์ฐ๋ฆฌ๊ฐ ์์๋ณด๊ธฐ ํ๋ค๊ฒ๋์ด์์ง๋ง ํ์ผํฌ๊ธฐ๊ฐ ์๊ณ , ๋น ๋ฆ.
CSS minification does not happen automatically by default, therefore if you edit your unminified CSS file, but include the minified version in your HTML, the page will not use the updated CSS by default.
grid์์ ์ค์ํ ๊ฐ๋
.
Rows must be placed within a .container (fixed-width) or .container-fluid (full-width) for proper alignment and padding.
Use rows to create horizontal groups of columns.
Content should be placed within columns, and only columns may be immediate children of rows.
modal.js๋ ์ฌ์งํด๋ฆญํ๋ฉด ๊ธ์ด ๋ณด์ด๋!!!! ๋์ค์ ์ฑ ํ๋งค ํ์ด์ง ๋ง๋ค๋ ์ข๊ฒ ๋ค.
Last updated
Was this helpful?