I recently embarked on creating a slideshow using HTML, CSS, and jQuery.
After completing the slideshow, I decided to add an interactive page beneath it. To streamline the layout process, I opted to utilize Bootstrap. However, upon loading Bootstrap, I encountered an issue – my slideshow and header shifted slightly to the right. While adjusting the margin-left property resolved the problem initially, resizing the window caused inconsistencies in the gap size.
This dilemma led me to share my HTML code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Company - BeerName</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"/>
</head>
<body>
<div id="wrapper">
<div id="content" class="container">
<div id="header">
<p id="headertitle">Beer</p>
<p id="headertext">ded</p>
<p id="headertext">edeed</p>
<p id="headertext">edededed</p>
</div>
<div id="slider" class="">
<ul class="slides">
<li class="slide slide1">slide1</li>
<li class="slide slide2">slide2</li>
<li class="slide slide3">slide3</li>
<li class="slide slide4">slide4</li>
</ul>
</div>
<a href="#DESCRIPTION"><div id="beer"></div></a>
</div>
<div id="footer"><p>TUBORG<stroke> - </stroke>PILSNER</p></div>
</div>
<!-- Additional Content Omitted -->
JSfiddle: https://jsfiddle.net/royrz6mL/