Open in TheBrain

How to do MY BOOTSTRAP website design

<p>Mar 30, 2016 07:40 PM &nbsp;<<April 9... NO... this RALLY needs to be re-written

as RH says... this is un-necess. complex... this style is from &nbsp;Dan Scott and

is NOT needed... Update this!!!</p>

<p>

in DW = dreamweaver;

(note: &nbsp;I've &nbsp;altered &nbsp;def. of control + S &nbsp;&nbsp;to be &nbsp;SAVE ALL</p>

<p>

(edit>keyboard shortcuts> &nbsp;&nbsp;(first remove it from &nbsp;SAVE &nbsp;and then add it to SAVE ALL)</p>

<p>

1) &nbsp;on your desktop.... &nbsp;create a brand new empty folder, &nbsp;eg &nbsp;&nbsp;<b>article</b>...</p>

<p>

2) &nbsp;Site> New Site... &nbsp;call it article and browse to the folder &nbsp;article... and click done.</p>

<p>

3) &nbsp;</p>

<p>

<b>File>New> New document> HTML> Bootstrap> create new</b>

(but must uncheck the "include a pre-built layout box"</p>

<p>

then SAVE (control s) and rename &nbsp;Untitled to be &nbsp;&nbsp;Index.html...</p>

<p>

then open CSS designer and hit &nbsp;+ (on Sources tab) to create a

brand new &nbsp;CSS called &nbsp;<b>main.html</b> &nbsp;&nbsp;(link to index)...</p>

<p>

Now, inside, just after &nbsp;&nbsp;<body> tag,</p>

<p>

INSERT > &nbsp;<b>Container-fluid </b>&nbsp;(note: &nbsp;that is a <b>BS component itself.</b>...

therefore it &nbsp;CANNOT be modified in any way !!!!</p>

<p>

The only way to modify BS grids or components is with a modifying

,class .</p>

<p>

So, &nbsp;go to CSS Designer and (in main.css) under

<b>Selectors</b>....> &nbsp;hit + to create a brand new class called, eg

.big-fluid &nbsp;and give it a bkgrnd color like light gray so you can SEE it.</p>

<p>

Note: when you create a class... every class begins with a dot... ie, &nbsp;<b>.big-fluid </b>&nbsp;&nbsp;&nbsp;...</p>

<p>

NOTE: &nbsp;to see it when you hit &nbsp;F12 &nbsp;(to get to Chrome, eg)... <b>you MUST give it a height.</b>.. so...</p>

<p>

But, &nbsp;do NOT give it a min-height (which would display in Chrome but not in DW);

so, rather, &nbsp;use <b>PADDING</b>, &nbsp;and give it &nbsp;100px &nbsp;top and bottom.</p>

<p>

Next, type inside the new &nbsp;container-fluid.big-fluid &nbsp;some content like

big-fluid contents &nbsp;(just so you see what it does)</p>

<p>

What it does: &nbsp;container-fluid &nbsp;&nbsp;just stretches to inffinity &nbsp;when you strech out the window.

eg over all my 4 monitors.</p>

<p>

Look at main.css &nbsp;you now have this.... &nbsp;&nbsp;each class is name &nbsp;beginning with a . (ie a period or dot)</p>

<p>

@charset "utf-8"; &nbsp;&nbsp;&nbsp;... that line is always automatically inserted by BS...

<b>.big-fluid</b> { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;... here .big-fluid class is defined

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and its properties appear inside &nbsp;the curley braces.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;each property is name ends wit a colon : &nbsp;and the value ends with a semi-colon;

<b>background-color: rgba(191,188,188,1.00);</b>

padding-top: 100px;

padding-bottom: 100px;

}</p>

<p>

now, look at the CODE of &nbsp;index.html

it appears as</p>

<p>

<b><div class="container-fluid big-fluid" > </div></b> &nbsp;...</p>

<p>

*

NEXT, &nbsp;INSIDE &nbsp;the .container-fluid.big-fluid &nbsp;&nbsp;class

INSERT &nbsp;(and NEST) &nbsp;another BS &nbsp;container &nbsp;&nbsp;this one should be a &nbsp;FIXED container

and is just named &nbsp;Container &nbsp;(on the &nbsp;Insert> &nbsp;Bootstrap components &nbsp;drop down in DW.</p>

<p>

again... you cannot directly modify that; since it is defined inside &nbsp;BS itself,

so again you give IT a special name, eg &nbsp;

<b>.big-fixed</b> &nbsp;and as above ,

use the CSS &nbsp;Designer in DW &nbsp;as above

to name it &nbsp;inside the CSS Designer> Selectors menu &nbsp;(hit +) and name it

.big-fixed &nbsp;(or anything else)

and &nbsp;give it props &nbsp;as above...</p>

<p>

(note: &nbsp;if you do NOT give it some content that occupies room... it will NOT show in a browser!!!!

so... give it some height again, as below...</p>

<p>

.big-fixed {

background-color: rgba(233,178,179,1.00); &nbsp;(pale red)

padding-top: 50px;

padding-bottom: 50px;

}</p>

<p>

now test it out... &nbsp;hit &nbsp;F12 &nbsp;to test it in Chrome &nbsp;eg

or use the little Globe at bottom of DW or the&nbsp;

File> &nbsp;Preview in Browser &nbsp;drop down &nbsp;to test it.</p>

<p>

*

Note that &nbsp;while &nbsp;container-fluid stretches to infinity....

container &nbsp;inside &nbsp;just stretches to &nbsp;one monitor &nbsp;(probably &nbsp;is 1280 &nbsp;max &nbsp;as in &nbsp;1020 by 1280 pixels)

</p>

<p>

then &nbsp;everything you next inside THAT &nbsp;(ie inside &nbsp;container.big-fixed

you can &nbsp;give a width to, &nbsp;&nbsp;eg &nbsp;Richard like percentages &nbsp;ie %...

remember to &nbsp;SAVE as you work

and then rename &nbsp;your evolving folder on your desktop &nbsp;eg

copy and rename the folder from &nbsp;Future Website &nbsp;to &nbsp;Future Website 16330

for &nbsp;2016, March, 30th day &nbsp;(today) &nbsp;and &nbsp;versions as &nbsp;a, b, c.

NEXT, &nbsp;INSIDE &nbsp;container.big-fixed...

INSERT &nbsp;&nbsp;another &nbsp;DIV</p>

<p>

Dan Scott of BYOL does INSERT (on HTML/ BS components)

a &nbsp;"Grid Row with column" &nbsp;&nbsp;can specify any number of &nbsp;columns.

and &nbsp;then just &nbsp;manually copy the code &nbsp;if you want more &nbsp;rows.</p>

<p>

I expt with this...

give it a bkgrnd color to see it... recall, must give it a class to do this.

eg .one-row &nbsp;&nbsp;&nbsp;... &nbsp;bkgrnd green.

(see my notes &nbsp;abt &nbsp;.col-sm-12 &nbsp;vs &nbsp;.col-md-12 &nbsp;versus &nbsp;.col-lg-12)</p>

<p>

NOTE: &nbsp;as you create a new, special name &nbsp;(I now have three new classes)

each must in turn be APPLIED ...

to apply each new class can just &nbsp;TYPE it into the CODE

eg &nbsp;as &nbsp;class ="container-fluid &nbsp;big-fluid" &nbsp;OR

in &nbsp;LIVE view... &nbsp;in DW... click on the displayed element and then hit

the + sign inside the blue box and then type eg &nbsp;.one-row &nbsp;(it prompts you);

And again, &nbsp;give &nbsp;.one-row &nbsp;a bkgrnd color &nbsp;eg green

and &nbsp;some padding to give it height &nbsp;(eg top and bottom = 20)

(can just edit properties in code view)

and play with that &nbsp;F12...

note, new innermost &nbsp;row &nbsp;stretch to 100% of it's fixes container in which it is nested

and it resizes as the window is shrunk.

lg seems to be for really large monitors. &nbsp;etc.

(that depends on &nbsp;Meda queries &nbsp;(see BYOL on that, defined by colored sliders in DW)</p>

<p>

next expt...</p>

<p>

give innermost &nbsp;a width of &nbsp;50% &nbsp;ie

.one-row &nbsp;&nbsp;hit &nbsp;Properties>+> width = 50%

and test with F12... it works!!!</p>

<p>

now try to define .two-inner-boxes, &nbsp;say &nbsp;NESTED inside &nbsp;.one-row

(use &nbsp;INSERT &nbsp;BS component &nbsp;"Grid Row with column) &nbsp;and use two cols)

and give each a new color and padding of ten.</p>

<p>

and give each of those &nbsp;a name and color and padding.

say .Lbox and .Rbox. &nbsp;v cool &nbsp;&nbsp;adn test it out.</p>

<p>

OK &nbsp;good test... now &nbsp;&nbsp;get rid of the inner boxes their defs.

(use &nbsp;the - sign in Selectors to delete it)

AND must also edit the code to get rid of those.</p>

<p>

*

*

don't forget to make all images &nbsp;.img-responsive

and also&nbsp;</p>

<p>

&nbsp;</p>

<p>

&nbsp;</p>

<p>

&nbsp;</p>

<p>

&nbsp;

&nbsp;</p>