Vertical scroll in IE8 on 1024 * 768 resolution - html

am developing page every thing working fine, I need it to be responsive almost every thing is working fine but vertical scroll coming in IE8 on 1024 * 768 resolution, How to sole that please help me
<div class="container">
<div class="header">
<div class="header-bg">
<div class="wrapper">
<a class="logo" title="Olympic Industrials Logo" href="#"></a>
<div class="menu-menu-container">
<ul class="menu" id="menu-menu"><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-13" id="menu-item-13">Home</li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-156" id="menu-item-156">Catalogue</li>
<li class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-10 current_page_item menu-item-15" id="menu-item-15">Quote</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="sibebar-menu-container">
<div class="mob-menu-link"><a id="moblink" href="#"></a></div>
<div class="inner-sidebar">
<ul class="quote_list">
<li>
<span class="quote_rightquote">“</span>
<p class="quote_sidepara1">Olympic Industrial, manufacturers of speacial maintenance tools and garage equipment, was establisg in 1978</p>
</li>
<li>
<p class="quote_sidepara2">Olympic proud to be appointed as the supplier to Daimler India for their commercial vehicles</p>
<span class="quote_sidepara2img"></span>
</li>
</ul>
</div>
<div class="footer">
<div class="wrapper-container">
<a class="develop" target="_blank" href="indiainternetready.com/"></a>
</div>
</div>
</div>
<div class="left-content">
<div class="breadcrum_products">
<p class="breadcrum_headertext">Request form</p>
</div>
<div class="content-area quote_content-area">
<div class="ctitle">Request for Quote</div>
<div class="ctxt">Fill out the below to request a quote on any tools and equipments. include information like part numbers of part descriptions. A sales representative is going to contact you with the quote.</div>
<div class="form">
<ul>
<li><div class="err" id="nameerr"></div><input type="text" onblur="namevalidation(this.value);if(this.value==''){this.value='Name*';this.style.color='#AEAEAE';}" onfocus="if(this.value=='Name*'){this.value='';this.style.color='#7b7b7b';}" maxlength="50" value="Name*" id="name"></li>
<li><div class="err" id="emailerr"></div><input type="text" onblur="validateemail(this.value);if(this.value==''){this.value='Email*';this.style.color='#AEAEAE';}" onfocus="if(this.value=='Email*'){this.value='';this.style.color='#7b7b7b';}" maxlength="75" value="Email*" id="email"></li>
</ul>
<ul>
<li><div class="err" id="comperr"></div><input type="text" onblur="compvalidation(this.value);if(this.value==''){this.value='Company Name*';this.style.color='#AEAEAE';}" onfocus="if(this.value=='Company Name*'){this.value='';this.style.color='#7b7b7b';}" maxlength="75" value="Company Name*" id="compname"></li>
<li><div class="err" id="countryerr"></div>
<select id="country"><option style="color:#AEAEAE" value="-- Select Country --">-- Select Country --</option><option value="India">India</option><option value="Egypt">Egypt</option><option value="South Africa">South Africa</option><option value="Dubai">Dubai</option><option value="West Indies">West Indies</option><option value="Vietnam">Vietnam</option><option value="Sri Lanka">Sri Lanka</option></select>
</li>
</ul>
<ul>
<li><div class="err" id="mobnumerr"></div><input type="text" onblur="mobnumvalidation(this.value);if(this.value==''){this.value='Mobile Number*';this.style.color='#AEAEAE';}" onfocus="if(this.value=='Mobile Number*'){this.value='';this.style.color='#7b7b7b';}" maxlength="10" value="Mobile Number*" id="mobnum"></li>
<li><div class="err" id="faxerr"></div><input type="text" onblur="faxvalidation(this.value);if(this.value==''){this.value='Fax Number';this.style.color='#AEAEAE';}" onfocus="if(this.value=='Fax Number'){this.value='';this.style.color='#7b7b7b';}" maxlength="20" value="Fax Number" id="fax"></li>
</ul>
<div class="formtextarea">
<span class="pls">Please utilize this space to provide us with as much information you may have concerning your Request for Quote:</span>
<div class="err" id="msgerr"></div>
<textarea onblur="messagevalidation(this.value);if(this.value==''){this.value='Type your message*';this.style.color='#AEAEAE';}" onfocus="if(this.value=='Type your message*'){this.value='';this.style.color='#7b7b7b';}" id="comment">Type your message*</textarea>
</div>
<div class="checkboxarea">
<div class="quote_email">
<input type="checkbox" id="newsletter"> <span>Send me email news and updates from Olympic Industries.</span>
</div>
<div class="quote_sendbtn">
<a title="Send Quote" id="subid" href="javascript:postform()"></a>
</div>
</div>
<div id="succ-msgid"></div>
</div>
</div>
</div>
//css
.header {
background-color: #FFFFFF;
border-bottom: 1px solid #DDDDDD;
height: 81px;
left: 0;
padding: 0 0 3px;
position: fixed;
top: 0;
width: 100%;
z-index: 10000;
}
.sibebar-menu-container {
background-color: #1F1F1F;
height: 100%;
position: fixed;
top: 0;
width: 242px;
z-index: 9999;
}
.left-content {
background-color: #F5F5F5;
margin: 0 auto 0 242px;
padding-top: 62px;
width: 83%;
}

you can add to css body{margin:0; padding:0}
and remove width: 83%; from .left-content

Related

How do i create a simple subscription form using html and css, to sit above the footer?

How can i create a simple subscription form? i have tried using this codes and css style, but they don't align the way it should be. whats wrong with what i've done? can someone point me in the right direction?
i want the form to have a background color or image and sit just above the footer, how do i achieve this?
.subscribe-container {
width: 100%;
padding-bottom: 5px;
margin-left: 200px;
margin-top: -40px;
}
.subscribe-container li {
display: block;
float: right;
width: 60%;
margin: 0 auto;
}
<form method="post" class="subscribe-form" action="#">
<div class="row">
<div class="col span-1-of-3">
<ul class="subscribe-container">
<li class="subscribe-feature">
<label for="email">Get Updates</label>
</li>
</ul>
</div>
<div class="col span-2-of-3">
<ul class="subscribe-container">
<li class="subscribe-feature">
<input type="text" class="updates" id="updates" placeholder="Email Address">
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col span-1-of-3">
<ul class="subscribe-container">
<li class="subscribe-features">
<label> </label>
</li>
</ul>
</div>
<div class="col span-2-of-3">
<ul class="subscribe-container">
<li class="subscribe-features">
<input type="submit" class="subscribe-btn" value="Subscribe">
</li>
</ul>
</div>
</div>
</form>
you will need to define the height and width of your class: subscribe-form and then set the background-color or image, like this:
.subscribe-form{
width: 500px;
heigth: 500px;
background-image:url("/your directory");
//or
background-color: blue;
}
In relation to the form you are going to the right direction, your "action" needs to ref some action page like in php, and if you need something like a javascript function, you can create a tag script in your code to enable javascript functions, you will need to add a button type="submit" in your html to call them, like that:
<html>
<form method="post" class="subscribe-form" action="#" onsubmit="doSomething()">
<div class="row">
<div class="col span-1-of-3">
<ul class="subscribe-container">
<li class="subscribe-feature">
<label for="email">Get Updates</label>
</li>
</ul>
</div>
<div class="col span-2-of-3">
<ul class="subscribe-container">
<li class="subscribe-feature">
<input type="text" class="updates" id="updates" placeholder="Email Address">
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col span-1-of-3">
<ul class="subscribe-container">
<li class="subscribe-features">
<label> </label>
</li>
</ul>
</div>
<div class="col span-2-of-3">
<ul class="subscribe-container">
<li class="subscribe-features">
<input type="submit" class="subscribe-btn" value="Subscribe">
</li>
</ul>
</div>
<button type="submit">Action form</button>
</div>
</form>
</html>
<script>
doSomething() {
window.alert('Thats the action of my form!');
}
</script>

Search box doesnt stay in the container of the top header

I am just learning how to use css and bootstrap to create an website based on a psd template, problem is that i cant keep my search box inside the container and it stays in the bottom of it.
Here is my code
.search-area {
margin-top: 3px;
text-align: right;
}
.search-area input {
background: #333333;
color: #ffffff;
border: 0px solid;
}
<body>
<div id="header-area1">
<div class="container">
<div class="top-header col-12 bg-succes">
<div class="left-header col-8">
<div class="feed-area">
<ul>
<li> Sign Up</li>
<li> Login</li>
<li> Rss Feed</li>
<li id="last"> Archived News</li>
</ul>
</div>
<div class="right-header col-4">
<div class="search-area">
<form action="">
<input type="textplaceholder=" Search...">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
I rewrote your code to fix it. do not forget to user "row" class out of your columns in bootstrap
<div id="header-area1">
<div class="container">
<div class="top-header col-12 bg-succes">
<div class="row">
<div class="left-header col-8">
<div class="feed-area">
<ul>
<li> Sign Up</li>
<li> Login</li>
<li> Rss Feed</li>
<li id="last"> Archived News</li>
</ul>
</div>
</div>
<div class="right-header col-4">
<div class="search-area">
<form action="">
<input type="textplaceholder=" Search...">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
Update my answer missing of row before col
.search-area {
margin-top: 3px;
text-align: right;
}
.search-area input {
background: #333333;
color: #ffffff;
border: 0px solid;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<body>
<div id="header-area1">
<div class="container">
<div class="top-header row bg-succes">
<div class=" col-8">
<div class="feed-area">
<ul>
<li> Sign Up</li>
<li> Login</li>
<li> Rss Feed</li>
<li id="last"> Archived News</li>
</ul>
</div>
</div>
<div class=" col-4">
<div class="search-area">
<form action="">
<input type="text" placeholder=" Search...">
</form>
</div>
</div>
</div>
</div>
</div>
</body>
Use this HTML structure for right align to searchbox.
Add col-6 with feed-area class. And instead os this <div class="left-header col-8"> use this <div class="left-header row">
<div id="header-area1">
<div class="container">
<div class="row">
<div class="top-header col-12 bg-succes">
<div class="left-header row">
<div class="feed-area col-6">
<ul>
<li>
Sign Up
</li>
<li>
Login
</li>
<li>
Rss Feed
</li>
<li id="last">
Archived News
</li>
</ul>
</div>
<div class="right-header col-4">
<div class="search-area">
<form action="">
<input type="textplaceholder=">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
.search-area {
margin-top: 3px;
text-align: right;
}
.search-area input {
background: #333333;
color: #ffffff;
border: 0px solid;
}

Columns are not being responsive in mobile view

I'm developing e-commerce site it is a college project, on that site I have filters and list of products. It works fine on laptop but when I open it on mobile, then the cards of product list comes under the filter. But I want to make it responsive and both columns should increase and decrease their size respective to screen size. I'm new in web-designing, please help me.
The class m is an empty class, i have just used it because with using it it gives nice look to all the contents.
#media screen and (max-width: 480px) {
section.slider {
padding-top: 0%;
}
.mini-menu .sub>ul {
height: 0;
overflow: hidden;
background: #fff;
}
.mini-menu .sub>ul>li>a {
font-family: sans-serif;
color: #FEFEFE;
font-size: 12px;
display: block;
text-decoration: none;
padding: .7em 1em;
text-transform: capitalize;
font-style: normal;
letter-spacing: 1px;
}
.cards {
background: #fff;
border-radius: 2px;
display: inline-block;
height: 50%;
margin: 1rem;
width: 97%;
position: relative;
text-align: center;
}
<div class="m">
<div class="col-md-2">
<div class="menu">
<div class="mini-menu">
<ul>
<li class="sub">
RAM<span style="float:right;"><i class="fa fa-chevron-down"></i></span>
<ul>
<li>
<input class="filter" data-filter=".check1" type="checkbox" id="checkbox1">
<label class="checkbox-label" for="checkbox1" style="color: #212121;">Less than 512 MB</label>
</li>
<li>
<input class="filter" data-filter=".check1" type="checkbox" id="checkbox1">
<label class="checkbox-label" for="checkbox1" style="color: #212121;">512 MB - 1 GB</label>
</li>
</ul>
</li>
<li class="sub">
BRAND<span style="float:right;"><i class="fa fa-chevron-down"></i></span>
<ul>
<li>
<input class="filter" data-filter=".check1" type="checkbox" id="checkbox1">
<label class="checkbox-label" for="checkbox1" style="color: #212121;">HP</label>
</li>
<li>
<input class="filter" data-filter=".check1" type="checkbox" id="checkbox1">
<label class="checkbox-label" for="checkbox1" style="color: #212121;">Dell</label>
</li>
</ul>
</li>
<li class="sub">
CUSTOMER RATINGS<span style="float:right;"><i class="fa fa-chevron-down"></i></span>
<ul>
<li>
<input class="filter" data-filter=".check1" type="checkbox" id="checkbox1">
<label class="checkbox-label" for="checkbox1" style="color: #212121;">4 <i class="fa fa-star"></i> & above</label>
</li>
</ul>
</li>
</ul>
</div>
<div class="menu-price menu-item">
<div class="header-item">Price<span style="float:right;"><i class="fa fa-chevron-down"></i></span></div>
<p>
<input type="text" readonly id="amount" style="border:0; color:#f6931f; font-weight:bold;">
</p>
<div id="slider-range"></div>
</div>
</div>
</div>
<div class="col-md-10">
<div class="cards card4">
<div class="carousel slide" id="myCarousel2" data-ride="carousel" data-interval="000" data-pause="hover">
<div class="carousel-inner">
<div class="item active">
<div class="col-xs-3">
<img src="computers/img/lenovo.png" alt=" " class="img-responsive" />
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel2" data-slide="prev"><i class="glyphicon glyphicon-chevron-left"></i></a>
<a class="right carousel-control" href="#myCarousel2" data-slide="next"><i class="glyphicon glyphicon-chevron-right"></i></a>
</div>
<div class="clearfix"></div>
</div>
<div class="cards card4">
<div class="carousel slide" id="myCarousel" data-ride="carousel" data-interval="000" data-pause="hover">
<div class="carousel-inner">
<div class="item active">
<div class="col-xs-3">
<img src="computers/img/dell.jpeg" alt=" " class="img-responsive" />
<p>
<br> Dell Core i3 6th Gen <br> Rs 29,990 <br>
</p>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>

Input field unable to display text in w3.css

I'm trying to create a nav with search functionality. When I input text input field, nothing is displayed. Also how do I deactivate the hover effect? ...using w3.css framework. Thanksview image here
<div class="w3-top">
<ul class="w3-navbar w3-cyan text-color-black w3-large" style="height: 49px; color: black">
<li>Hello</li>
<li class="w3-right" style="font-size: 90%">Log Out</li>
<li class="w3-right" style="font-size: 90%">Dashboard </li>
<li class="w3-right" style="font-size: 90%">Bookmarks</li>
<input class="w3-input w3-border w3-small" style="width: 350px; height: 30px; margin-left: 400px; margin-top: 10px" name="first" type="text" placeholder="search names here">
<button class="w3-btn w3-small w3-white w3-border w3-round" style="margin-left: 615px; margin-top: -30px; height: 30px">Search</button>
<!--<" style="width:450px; height:28px; margin-left: 390px; margin-top: 20px; font-size: 70%" name="first" type="text">-->
</div>
</ul>
</div>
I can't figure out why there is an ending </div> tag before </ul> remove it.
<div class="w3-top">
<ul class="w3-navbar w3-cyan text-color-black w3-large" style="height: 49px; color: black">
<li>Hello</li>
<li class="w3-right" style="font-size: 90%">Log Out</li>
<li class="w3-right" style="font-size: 90%">Dashboard </li>
<li class="w3-right" style="font-size: 90%">Bookmarks</li>
<input class="w3-input w3-border w3-small" style="width: 350px; height: 30px; margin-left: 400px; margin-top: 10px" name="first" type="text" placeholder="search names here">
<button class="w3-btn w3-small w3-white w3-border w3-round" style="margin-left: 615px; margin-top: -30px; height: 30px">Search</button>
<!--<" style="width:450px; height:28px; margin-left: 390px; margin-top: 20px; font-size: 70%" name="first" type="text">-->
</div> <!--please remove this line -->
</ul>
</div>
<div class="w3-top">
<ul class="w3-navbar w3-cyan text-color-black w3-large" style="height: 49px; color: black">
<li>Hello</li>
<li class="w3-right" style="font-size: 90%">Log Out</li>
<li class="w3-right" style="font-size: 90%">Dashboard </li>
<li class="w3-right" style="font-size: 90%">Bookmarks</li>
<input class="w3-input w3-border w3-small" style="width: 350px; height: 30px; margin-left: 400px; margin-top: 10px" name="first" type="text" placeholder="search names here">
<button class="w3-btn w3-small w3-white w3-border w3-round">Search</button>
<!--<" style="width:450px; height:28px; margin-left: 390px; margin-top: 20px; font-size: 70%" name="first" type="text">-->
</div> <!--please remove this line -->
</ul>
</div>
This is because button layer is over input type layer. so you can't see anything typing. you need to remove all inline CSS for the button.
Hello
Log Out
Dashboard
Bookmarks
Search
-->
Please check this now. it's working in snippet

Phantom top margin on float left

I'm having a little trouble with floating my elements. I have some phantom margin that has appeared on my 3rd col element; as seen in the image below;
I have tried adding; box-sizing: border-box; but this doesn't help either. Is there something I am missing?
Code
#f-wrap {
position: relative;
width:100%;
margin: 0 auto;
}
.row {
display: inline-block;
width: 100%;
}
.col {
display: inline-block;
float: left;
width: 45%;
margin: 2em 1em;
background: #f0f;
}
<section class="ctre s-f">
<div id="t-wrap">
<div class="row">
<div class="col">
<img src="img-bin/mgi-logo.png" alt="MGI Technology logo." width="20%"/>
</div>
<div class="col">
<h3 class="f-h">Related Links</h3><br/>
<ul>
<li class="f-lnk">Home</li>
<li class="f-lnk">About us</li>
<li class="f-lnk">Products</li>
<li class="f-lnk">News</li>
<li class="f-lnk">Contact us</li>
<li class="f-lnk">Recycle</li>
<li class="f-lnk">Site map</li>
</ul>
</div>
</div>
<hr class="style-two"/>
<div class="row">
<div class="col">
<h3 class="f-h">Social</h3><br/>
<ul>
<li class="f-ico"><img src="img-bin/mgi-logo.png" alt="" width="100%" /></li>
<li class="f-ico"><img src="img-bin/mgi-logo.png" alt="" width="100%" /></li>
<li class="f-ico"><img src="img-bin/mgi-logo.png" alt="" width="100%" /></li>
</ul>
</div>
<div class="col f-txt">
<h3 class="f-h">Find Us</h3><br/>
MGI Technology<br/>
<br/>
MAP
</div>
</div>
</div>
</section>
Any assistance I can get with this would be greatly appreciated...
Update: Have now tried vertical-align:top; and removed float:left. Issue persists.
Temporary Live Example
your snippet is not showing any issue but anyhow, but it seems that's due to by default inline-block is vertical-align:baseline, so you must set to vertical-align:top
plus remove unnecessary float:left
#f-wrap {
position: relative;
width:100%;
margin: 0 auto;
}
.row {
display: inline-block;
vertical-align:top;
width: 100%;
}
.col {
display: inline-block;
vertical-align:top;
width: 45%;
margin: 2em 1em;
background: #f0f;
}
<section class="ctre s-f">
<div id="t-wrap">
<div class="row">
<div class="col">
<img src="img-bin/mgi-logo.png" alt="MGI Technology logo." width="20%"/>
</div>
<div class="col">
<h3 class="f-h">Related Links</h3><br/>
<ul>
<li class="f-lnk">Home</li>
<li class="f-lnk">About us</li>
<li class="f-lnk">Products</li>
<li class="f-lnk">News</li>
<li class="f-lnk">Contact us</li>
<li class="f-lnk">Recycle</li>
<li class="f-lnk">Site map</li>
</ul>
</div>
</div>
<hr class="style-two"/>
<div class="row">
<div class="col">
<h3 class="f-h">Social</h3><br/>
<ul>
<li class="f-ico"><img src="img-bin/mgi-logo.png" alt="" width="100%" /></li>
<li class="f-ico"><img src="img-bin/mgi-logo.png" alt="" width="100%" /></li>
<li class="f-ico"><img src="img-bin/mgi-logo.png" alt="" width="100%" /></li>
</ul>
</div>
<div class="col f-txt">
<h3 class="f-h">Find Us</h3><br/>
MGI Technology<br/>
<br/>
MAP
</div>
</div>
</div>
</section>
UPDATE:
Looking at your live site, the issue is that the other col has another class f-txt which has a property font-size:8pt and with that, change the height of the column.
So either you apply the same class to the first .col or remove that property