W
W
wasd3602016-02-19 20:13:34
css
wasd360, 2016-02-19 20:13:34

HTML & Bootstrap Questions?

Hello.
1) Please tell me how to make a rubber background (picture) in html so that the main container is centered.
2) Can someone remotely (tw etc) show the main working Bootstrap tags (I mean, creating a simple header-content (two-three columns)-footer template)?
skype wasd360
Thank you!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Pshkll, 2016-02-19
@Pshkll

one)

<div class="container-fluid">
<div class="container">
<div class="row">
<div class="col-md-12">center</div>
</div>
</div>
</div>

.container-fluid{
background: url('image.jpg') no-repeat top center;
background-size: cover;
}

2) Can

A
Alexander Sharomet, 2016-02-19
@sharomet

I did this:
For example, the image size is 1600x500
500/1600*100=31.25%
.bg{
background:url(images) center center;
background-size: cover;
padding-top:31%
}
This is if your block does not contain content, if there is content then position absolute for it and measure, or subtract content from padding as a percentage. If it's for body then you don't need padding at all.
Slightly stupid variak, but in a different way, I only wrote through js.

A
Alex, 2016-02-20
@streetflush

startbootstrap.com/template-categories/all
here are bootstrap templates, you can see everything there

D
Dmitry Khristoev, 2016-02-20
@Haoss

https://www.youtube.com/playlist?list=PLqGj3iMvMa4...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question