How we can create a single-page website for the personal portfolio using HTML CSS? Solution: One Page Portfolio Template With HTML CSS Bootstrap, Single page website design.
A single or one page website is simply a website that only contains one HTML page. There are no additional pages like about, contact, etc. Nowadays most of peoples prefer single page website for their personal portfolio or resume. The main benefit of the one-page website is, user can see all the valuable information just by scrolling.
Today you will learn to create a single page website for your personal presentation. This post will be the best HTML CSS practice for beginners because they can learn the proper use of tags and properties. You use this as your own portfolio website by just changing the matters and links. The best face of this template is minimal design with fewer codes.
So, Today I am sharing One Page Portfolio Template With HTML CSS Bootstrap. This is an attractive web template for your personal portfolio with responsive design. There I have used bootstrap to create a responsive layout, and have not used other libraries just used little bit jQuery for smooth scrolling.
If you are thinking now how this web template actually is, then see the preview given here below.
Preview Of Responsive Single Page Web Template
See this video preview to getting an idea of how this website design looks like.
Now you can see this visually, you also can see it live by pressing the button given above. If you like this, then get the source code of its.
You May Also Like:
- HTML Email Template
- Login Page in HTML CSS
- CSS Clip Path Animation Card
- Multi Step Form With Progress
Discussion
Before sharing source code, let’s talk about it. As you know I have used Bootstrap for creating responsive layouts easily (get). Most of the works have been done in HTML file, because used special tags for elements like navbar, section, footer, etc. Bootstrap is very easy to use, you just have to place class and ID.
There are fewer line codes of jQuery for smooth scrolling when we click on any item in navbar then its scroll to the targeted container. There is some image of the element’s background, I have placed these for good looking UI. BTW this design is inspired by a post on the dribble. As you can see in the preview there is a verticle timeline for showing experiences.
Now in the CSS File, I have done many works like placing all element by giving margin and padding, font style, colors, element style, etc. I also have used CSS @media query for reduced fonts size in the small screen. Talk about extra things: I have used a google font and font-awesome library for icons.
I can’t explain all things in writing, because its a complete template there are lots of things. If you have little knowledge of coding, then you will understand this easily. I think if you search google for these type of template then you will get only the template not tutorial, I have explained basic thing and about the used technology.
One Page Portfolio Template With HTML CSS Bootstrap Source Code
You will understand easily after getting the codes, don’t worry. For creating this template you have to create just 3 files. First for HTML, second for CSS and the third for JavaScript. Follow the steps to creating this without any error.
index.html
Create an HTML file named ‘index.html‘ and put these codes given here below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
<!DOCTYPE html> <!--Code By Webdevtrick ( https://webdevtrick.com )--> <html lang="en" > <head> <meta charset="UTF-8"> <title>Single Page Portfolio | Webdevtrick.com</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="style.css"> <link href="https://fonts.googleapis.com/css?family=Staatliches&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body data-spy="scroll" data-target=".navbar" data-offset="50"> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container-fluid"> <div class="collapse navbar-collapse" id="myNavbar"> <ul class="nav navbar-nav navbar-left"> <li><a href="#home" class="scroll"><span class="fa fa-home"></span> Home</a></li> <li><a href="#about" class="scroll"><span class="fa fa-user"></span> About </a></li> <li><a href="#experience" class="scroll"><span class="fa fa-space-shuttle"></span> Experience</a></li> <li><a href="#portfolio" class="scroll"><span class="fa fa-picture-o"></span> Portfolio</a></li> <li><a href="#contact" class="scroll"><span class="fa fa-envelope"></span> Contact</a></li> </ul> </div> </div> </nav> <!-- Section 1 --> <section class="banner text-center" id="home"> <div id="overlay"> <div class="title"> <h1><strong> WEB DEV TRICK SHAAN </strong></h1> <h3 id="qualif"><strong> Graphic Web Desginer, Web Developer, SEO </strong></h3> </div> <div class="row text-center"> <div class="border contact"><a href="#"><h2 style="color: white;" id="borderText"><strong> CONTACT </strong></a></h2></div> <div class="border resume"><h2 style="color: white;" id="borderText"><a href="#"><strong> RESUME </strong></a></h2></div> </div> </div> </section> <!-- small-introduction --> <div class="small-intro"> <p id="small-intro"><strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum lobortis, eros non pulvinar pellentesque, turpis nulla consequat elit, id auctor nulla metus eu ex. Phasellus imperdiet ornare tristique. Ut ut lacus gravida, feugiat mi a,tincidunt ipsum. Nam sit amet odio consequat, finibus ligula vitae, mattis sem. Suspendisse vitae turpis sit amet lorem rutrum malesuada fringilla at magna. Nam tempor magna facilisis turpis vulputate venenatis. Donec euismod lectus justo, eget ornare lacus malesuada nec. Sed sed orci ut arcu semper porttitor sed eu nunc. Integer sodales et felis id luctus. Nulla quis fermentum leo. Vestibulum vulputate libero ac lacinia dictum. Nullam tincidunt imperdiet nisi, ut condimentum ipsum fermentum sed. Pellentesque congue felis nec aliquet sagittis. Etiam eget porta ipsum. Proin non pretium ipsum, vel tristique justo.</strong></p> </div> <!-- Skilss --> <section class="skills" id="about"> <div class="text-center titles border"> <h1 id="title"><strong> TECHNICAL SKILLS </strong></h1> </div> <h2 class="text-center" id="skills-label"><strong> Languages: </strong></h2> <div class="row text-center"> <div class="skill">HTML</div> <div class="skill">CSS</div> <div class="skill">JavaScript </div> <div class="skill">PHP</div> <div class="skill">.NET</div> <div class="skill">Python</div> <div class="skill">Ruby</div> <div class="skill">Java</div> </div> <h2 class="text-center" id="skills-label"><strong> Frameworks & Libraries: </strong></h2> <div class="row text-center"> <div class="skill">jQuery</div> <div class="skill">React</div> <div class="skill">React Native</div> <div class="skill">Angular</div> <div class="skill">NodeJS</div> <div class="skill">Vue JS</div> </div> <h2 class="text-center" id="skills-label"><strong> Databases: </strong></h2> <div class="row text-center"> <div class="skill"> mySQL </div> <div class="skill"> MongoDB </div> <div class="skill"> SQLite </div> </div> </section> <!-- Experience --> <section class="ex-timeline" id="experience"> <h1 class="text-center border titles" id="title"><strong> EXPERIENCE</strong> </h1> <div class="job-timeline"> <ul class="timeline"> <li class="timeline-event"> <label class="timeline-icon"></label> <div class="timeline-event-copy"> <p class="timeline-thumbnail"> February 2010 - June 2012 </p> <h5 id="workplace"><a href="#" target="_blank">Google</a></h5> <h5 id="jobPos"><strong> Lorem ipsum </strong></h5> <p id="jobDesc"> • Quisque dictum placerat urna eget mattis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut cursus tincidunt tristique.</p> </div> </li> </ul> <ul class="timeline"> <li class="timeline-event"> <label class="timeline-icon"></label> <div class="timeline-event-copy"> <p class="timeline-thumbnail"> July 2012 - August 2015</p> <h5 id="workplace"><a href="#" target="_blank">Facebook</a></h5> <h5 id="jobPos"><strong> Lorem ipsum </strong></h5> <p id="jobDesc">• Quisque dictum placerat urna eget mattis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut cursus tincidunt tristique.</p> </div> </li> </ul> <ul class="timeline"> <li class="timeline-event"> <label class="timeline-icon"></label> <div class="timeline-event-copy"> <p class="timeline-thumbnail"> August 2015 - January 2016</p> <h5 id="workplace"><a href="#" target="_blank">Microsoft</a></h5> <h5 id="jobPos"><strong> Lorem ipsum </strong></h5> <p id="jobDesc"> • Quisque dictum placerat urna eget mattis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut cursus tincidunt tristique. </p> </div> </li> </ul> <ul class="timeline"> <li class="timeline-event"> <label class="timeline-icon"></label> <div class="timeline-event-copy"> <p class="timeline-thumbnail"> February 2018 - June 2018</p> <h5 id="workplace"><a href="#" target="_blank">Amazon</a></h5> <h5 id="jobPos"><strong>Lorem ipsum</strong></h5> <p id="jobDesc"> • Quisque dictum placerat urna eget mattis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut cursus tincidunt tristique. </p> </div> </li> </ul> <ul class="timeline"> <li class="timeline-event"> <label class="timeline-icon"></label> <div class="timeline-event-copy"> <p class="timeline-thumbnail"> December 2018 - Present </p> <h5 id="workplace"><a href="#" target="_blank">Coke Cola</a></h5> <h5 id="jobPos"><strong> Lorem ipsum </strong></h5> <p id="jobDesc">• Quisque dictum placerat urna eget mattis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut cursus tincidunt tristique.</p> </div> </li> </ul> </div> </section> <!-- Projects--> <section class="portfolios" id="portfolio"> <h1 class="text-center border titles" id="title"><strong> PORTFOLIO </strong></h1> <div class="container"> <div class="row"> <div class="col-md-6"> <div class="well"> <a class="thumbnail"> <img src="https://webdevtrick.com/wp-content/uploads/javascript-loop-slideshow-980x515.jpg" class="project-img"> </a> <h2 id="projectTitle"><strong>Loop Slideshow</strong></h2> <a href="https://webdevtrick.com/demos/javascript-image-slideshow/" target="_blank" alt="Live Demo"><h2 id="liveDemo"><strong>Live Demo</strong></h2></a> <a href="https://webdevtrick.com/javascript-loop-slideshow/" target="_blank" alt="Source Code"><h2 id="sourceCode"><strong>Source Code</strong></h2></a> </div> </div> <div class="col-md-6"> <div class="well"> <a class="thumbnail"> <img src="https://webdevtrick.com/wp-content/uploads/before-and-after-image-slider-980x515.jpg" class="project-img"> </a> <h2 id="projectTitle"><strong>Before & After Slider</strong></h2> <a href="https://webdevtrick.com/demos/after-before-slider/" target="_blank" alt="Live Demo"><h2 id="liveDemo"><strong>Live Demo</strong></h2></a> <a href="https://webdevtrick.com/before-and-after-image-slider/" target="_blank" alt="Source Code"><h2 id="sourceCode"><strong>Source Code</strong></h2></a> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="well"> <a class="thumbnail"> <img src="https://webdevtrick.com/wp-content/uploads/css-background-gradient-animation-980x515.jpg" class="project-img"> </a> <h2 id="projectTitle"><strong>Loop Slideshow</strong></h2> <a href="https://webdevtrick.com/demos/css-gradient-background/" target="_blank" alt="Live Demo"><h2 id="liveDemo"><strong>Live Demo</strong></h2></a> <a href="https://webdevtrick.com/css-gradient-background/" target="_blank" alt="Source Code"><h2 id="sourceCode"><strong>Source Code</strong></h2></a> </div> </div> <div class="col-md-6"> <div class="well"> <a class="thumbnail"> <img src="https://webdevtrick.com/wp-content/uploads/css-filter-image-editor.jpg" class="project-img"> </a> <h2 id="projectTitle"><strong>Loop Slideshow</strong></h2> <a href="https://webdevtrick.com/demos/css-filter-editor/" target="_blank" alt="Live Demo"><h2 id="liveDemo"><strong>Live Demo</strong></h2></a> <a href="https://webdevtrick.com/css-filter-image-editor/" target="_blank" alt="Source Code"><h2 id="sourceCode"><strong>Source Code</strong></h2></a> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="well"> <a class="thumbnail"> <img src="https://webdevtrick.com/wp-content/uploads/css-ghost-buttons.jpg" class="project-img"> </a> <h2 id="projectTitle"><strong>Loop Slideshow</strong></h2> <a href="https://webdevtrick.com/demos/css-ghost-buttons/" target="_blank" alt="Live Demo"><h2 id="liveDemo"><strong>Live Demo</strong></h2></a> <a href="https://webdevtrick.com/css-ghost-buttons/" target="_blank" alt="Source Code"><h2 id="sourceCode"><strong>Source Code</strong></h2></a> </div> </div> <div class="col-md-6"> <div class="well"> <a class="thumbnail"> <img src="https://webdevtrick.com/wp-content/uploads/html-video-player-js-css.jpg" class="project-img"> </a> <h2 id="projectTitle"><strong>Loop Slideshow</strong></h2> <a href="https://webdevtrick.com/demos/html-video-player/" target="_blank" alt="Live Demo"><h2 id="liveDemo"><strong>Live Demo</strong></h2></a> <a href="https://webdevtrick.com/html-video-player-javascript-css/" target="_blank" alt="Source Code"><h2 id="sourceCode"><strong>Source Code</strong></h2></a> </div> </div> </div> </div> </section> <!-- contact --> <section class="contact-section" id="contact"> <h1 class="text-center">Conect With Me!</h1> <div class="contact-buttons"> <a class="btn btn-linkedin btn-lg" href="#" target="_blank" ><i class="fa fa-2x fa-linkedin"></i></a> <a class="btn btn-github btn-lg" href="#" target="_blank"><i class="fa fa-2x fa-github"></i></a> <a class="btn btn-drible btn-lg" href="#" target="_blank" ><i class="fa fa-2x fa-dribbble"></i></a> <a class="btn btn-facebook btn-lg" href="#" target="_blank"><i class="fa fa-2x fa-facebook-square"></i></a> </div> </section> <!-- Footer --> <footer> <p id="footer">Copyright © Webdevtrick 2019</p> </footer> </body> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js'></script> <script src="function.js"></script> </body> </html> |
style.css
Now create a CSS file named ‘style.css‘ and put these codes given here.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 |
/* Code By Webdevtrick ( https://webdevtrick.com ) */ html, body { background-color: white; color:white; font-family: 'Staatliches', cursive; letter-spacing: 3px; width: 100%; margin: 0; padding: 0; overflow-x: hidden; } .navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover { background-color: #ed5565; } h1 { padding-top: 10px; font-size: 10.0em; } h2 { font-size: 3.0em; color: white; } h3 { font-size: 2.5em; } a { text-decoration: none; color: white; } a:hover { color: #ff2a4a; } .banner { background:url("https://webdevtrick.com/wp-content/uploads/1st.jpg"); background-size: cover; height: 1000px; } #overlay { background: rgba(0, 0, 0, 0.76); height: 1000px; } .skills { background:url("https://webdevtrick.com/wp-content/uploads/coding.jpg"); background-size: cover; min-height: 100%; padding-bottom: 40px; padding-top:40px; } .ex-timeline { background:url("https://webdevtrick.com/wp-content/uploads/black-background.jpg"); background-size: cover; min-height: 100%; padding-top: 20px; padding-bottom: 60px; } .portfolios { padding-top: 5px; margin-top: -20px; background: #212121; } .title { padding-bottom: 10px; width: 1100px; margin-right: auto; margin-left: auto; position: relative; top: 250px; } .titles { width: 790px; border-color: white; border-width: 5px; display: block; margin:0 auto; margin-top: 30px; margin-bottom: 30px; } #title { font-size: 6.5em; padding-bottom: 15px; } #skills-label { font-size:5.0em; padding-bottom:30px; } .project-img { height: 500px; width: 450px; } #projectTitle { text-align: center; font-size: 2.8em; cursor: pointer; color: #212121; } .skill { background-color: white; color: #212121; font-size: 3rem; opacity: .8; padding: 15px; margin: 5px; border-radius: 15px; position: relative; display: inline-block; } .small-intro { background: #e8eaed; padding-top: 60px; } #small-intro { text-align: center; width: 50%; font-size: 2em; display:block; margin: 0 auto; color: #212121; padding-bottom: 60px; } .well { min-height: 300px; } .border { border-style: solid; border-width: 3px; border-color: #ff2a4a; } .resume { top: 280px; position: relative; font-size: 70%; width: 140px; display: inline-block; margin-left: 15px; cursor: pointer; padding-bottom: 8px; } .contact { top: 280px; position: relative; font-size: 70%; width: 140px; display: inline-block; cursor: pointer; padding-bottom: 8px; } #qualif { font-size: 3em; color:#ff2a4a; } footer { background-color: #ff2a4a; color: white; line-height: 20px; padding-top: 10px; padding-bottom: 5px; width: 100%; bottom: 0; position: relative; text-align: center; } .timeline { position: relative; max-width: 100%; list-style-type: none; margin: 0 auto; display: flex; left: 35%; padding-top: 2%; } .timeline:before { background: #1da1f2; content: ''; position: absolute; top: 0; width: 5px; height: 100%; left: 10px; } .timeline-event { position: relative; } .timeline-event:hover .timeline-icon { -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); transform: rotate(-45deg); background-color: #1da1f2; } .timeline-event:hover .timeline-thumbnail { -moz-box-shadow: inset 40em 0 0 0 #ed5565; -webkit-box-shadow: inset 40em 0 0 0 #ed5565; box-shadow: inset 40em 0 0 0 #ed5565; } .timeline-event #workplace{ transition: all .3s; -webkit-transition: all .3s; -moz-transition: all .3s; -ms-transition: all .3s; -o-transition: all .3s; } .timeline-event:hover #workplace{ color: #4f83f2; } .timeline-event-copy { left: 50px; padding: 32px 32px 0; position: relative; top: -32px; width: 100%; } .timeline-event-copy p:not(.timeline-thumbnail) { font-size: 14px; font-weight: 300; line-height: 24px; padding-bottom: 0px; } .timeline-icon { -moz-transition: -moz-transform 0.2s ease-in; -o-transition: -o-transform 0.2s ease-in; -webkit-transition: -webkit-transform 0.2s ease-in; transition: transform 0.2s ease-in; -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg); background-color: white; outline: 10px solid #ed5565; display: block; margin: 8px 8px 8px -8px; position: absolute; top: 0; left: 32px; width: 16px; height: 16px; } .timeline-thumbnail { -moz-transition: box-shadow 0.5s ease-in 0.1s; -o-transition: box-shadow 0.5s ease-in 0.1s; -webkit-transition: box-shadow 0.5s ease-in; transition: box-shadow 0.5s ease-in 0.1s; -moz-box-shadow: inset 0 0 0 0em #1da1f2; -webkit-box-shadow: inset 0 0 0 0em #1da1f2; box-shadow: inset 0 0 0 0em #1da1f2; background: none repeat scroll 0 0 #ed5565; box-shadow: 0 0 0 0 #1da1f2 inset; color: #fff; display: inline-block; font-size: 18px; font-weight: bold; text-transform: uppercase; margin-bottom: 10px; padding: 8px 15px; transition: box-shadow 0.5s ease-in 0.1s; } #workplace { font-size: 38px; } #jobPos { font-size: 25px; } #jobDesc { font-size: 20px; width: 50%; } #liveDemo { text-align: center; font-size: 2em; cursor: pointer; display: inline; padding-right: 10%; padding-left: 20%; color: #002b80; } #sourceCode { text-align: center; font-size: 2em; cursor: pointer; display: inline; color: #002b80; } .contact-section { background-color: #333; background-size: cover; height: 350px; padding-top: 20px; } .contact-buttons { display: block; width: 100%; bottom: 0; position: relative; text-align: center; } .btn-linkedin { background: #0E76A8; border-radius: 10px; color: #fff; border-width: 1px; border-style: solid; border-color: #084461; } .btn-drible { background: #e64786; border-radius: 10px; color: white; border-width: 1px; border-style: solid; border-color: #084461; } .btn-github { background-color: #24292e; border-radius: 10px; color: white; border-width: 1px; border-style: solid; border-color: #084461; } .btn-email { background-color: #141f1f; border-radius: 10px; color: white; border-width: 1px; border-style: solid; border-color: #084461; } .btn-facebook { background-color: #4267b2; border-radius: 10px; color: white; border-width: 1px; border-style: solid; border-color: #084461; } @media (min-width:1400px) { .banner, .skills, .ex-timeline, .portfolios, .contact-section { background-repeat: no-repeat; background-attachment: fixed; background-position: center; } } @media (max-width: 800px) and (min-width: 300px) { img { width: 30vw; height: 30vh; } h1 { font-size: 12vw; } h2 { font-size: 8vw; } h3 { font-size: 6vw; } p { font-size: 6vw; } .skill { font-size: 5vw; } ul { font-size: 4.5vw; width: 80%; } #skills-label { font-size: 13vw; } .banner { background-size: 100% 100%; height: 550px; } .title { padding-bottom: 10px; width: 90%; top: 100px; } .border { width: 25%; border-width: 2px; } .resume,.contact { top: 110px; position: relative; padding-bottom: 10px; } .small-intro { padding-top: 40px; } #small-intro { width: 80%; font-size: 5vw; padding-bottom: 40px; } #borderText { font-size: 5.5vw; } #qualif { font-size: 6.5vw; } .titles { width: 85%; } #title { padding-bottom: 15px; font-size: 12vw; } #skills-label { font-size: 10vw; padding-bottom: 10px; } #footer { font-size: 3vw; } .timeline { left: 0; } .timeline-thumbnail { font-size: 3.5vw; } .timeline:before { width: 2px; } #workplace { font-size: 8vw; } #jobPos { font-size: 6vw; } #jobDesc { font-size: 5vw; width: 100%; } #liveDemo { padding-left: 5%; padding-right: 14%; font-size: 5.5vw; } #sourceCode { font-size: 5.5vw; } .view { font-size: 5.5vw; } } |
function.js
The final step, create a JavaScript file named ‘function.js‘ and put the codes.
1 2 3 4 5 6 7 8 9 10 |
// Code By Webdevtrick ( https://webdevtrick.com ) $(document).ready(function(){ $(".scroll").click(function(event){ event.preventDefault(); $("html,body").animate({scrollTop:$(this.hash).offset().top}, 500); $('.navbar-default a').removeClass('selected'); $(this).addClass('selected'); }); }); |
That’s It. Now you have successfully created One Page Portfolio Template With HTML CSS Bootstrap. If you have any doubt or question comment down below.
Thanks For Visiting, Keep Visiting.
This is great but the menu doesn’t show when the browser is resized to small!
why the menu bar is not showing up for the other devices ???