i am having the source code
<%# Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="condition.aspx.cs" Inherits="condition" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<p>
<br />
<asp:ImageButton ID="ImageButton1" runat="server" Height="234px"
ImageUrl="~/images/condition.jpeg" Width="289px" />
</p>
<p style="font-size: small">
Very often there are health issues that cannot be clearly classified under a
specific medical specialty. The topics under this section include health issues
of this kind. This section also explains symptoms related to different kinds of
illnesses and diseases. The different medical specialties are also covered in
this section.</p>
<p style="font-size: small">
</p>
<p style="font-size: small">
</p>
<div class="clearfix" style="padding-left: 5px;">
<div style="float: left; width: 50%;">
<span style="font-size: small"> <a
href="http://www.aarogya.com/conditions-and-diseases/acute-diarrheal-disease.html"><span
id="act31">Acute Diarrheal Disease</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/allergy.html"><span
id="act16">Allergy</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/amebiasis.html"><span
id="act32">Amebiasis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/appendicitis.html"><span
id="act17">Appendicitis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/arthritis.html"><span
id="act18">Arthritis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/asthma.html"><span
id="act19">Asthma</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/blindness.html"><span
id="act20">Blindness</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/blood-pressure.html"><span
id="act21">Blood Pressure</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/bronchitis.html"><span
id="act22">Bronchitis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/brucellosis.html"><span
id="act33">Brucellosis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/chicken-pox.html"><span
id="act34">Chicken Pox</span></a><br />
• </span><a
href="http://www.aarogya.com/conditions-and-diseases/chikungunya-fever.html"><span
id="act35"><span style="font-size: small">Chikungunya Fever</span></span></a><span
style="font-size: small"><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/cholera.html"><span
id="act36">Cholera</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/conjunctivitis.html"><span
id="act25">Conjunctivitis</span></a><br />
• <a
href="http://www.aarogya.com/conditions-and-diseases/computer-health-hazards.html"><span
id="act148">Computer Health Hazards</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/dengue.html"><span
id="act37">Dengue</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/diphtheria.html"><span
id="act38">Diphtheria</span></a><br />
• <a
href="http://www.aarogya.com/conditions-and-diseases/diagnostic-tests.html"><span
id="act149">Diagnostic Tests</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/dysentery.html"><span
id="act26">Dysentery</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/guinea-worm.html"><span
id="act27">Guinea Worm</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/hepatitis.html"><span
id="act39">Hepatitis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/hookworm.html"><span
id="act40">Hookworm</span></a>
</div>
<div style="float: left;">
• <a href="http://www.aarogya.com/conditions-and-diseases/influenza.html"><span
id="act41">Influenza</span></a><br />
• <a
href="http://www.aarogya.com/conditions-and-diseases/irritable-bowel-syndrome.html"><span
id="act28">Irritable Bowel Syndrome</span></a><br />
• <a
href="http://www.aarogya.com/conditions-and-diseases/japanese-encephalitis.html"><span
id="act29">Japanese Encephalitis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/leprosy.html"><span
id="act42">Leprosy</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/leptospirosis.html"><span
id="act43">Leptospirosis</span></a><br />
• <a
href="http://www.aarogya.com/conditions-and-diseases/lymphatic-filariasis.html"><span
id="act44">Lymphatic Filariasis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/malaria.html"><span
id="act45">Malaria</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/measles.html"><span
id="act46">Measles</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/plague.html"><span
id="act30">Plague</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/poliomyelitis.html"><span
id="act47">Poliomyelitis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/rabies.html"><span
id="act48">Rabies</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/rubella.html"><span
id="act49">Rubella</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/tetanus.html"><span
id="act50">Tetanus</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/tuberculosis.html"><span
id="act51">Tuberculosis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/typhoid-fever.html"><span
id="act52">Typhoid Fever</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/viral-hepatitis.html"><span
id="act178">Viral Hepatitis</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/whooping-cough.html"><span
id="act53">Whooping Cough</span></a><br />
• <a href="http://www.aarogya.com/conditions-and-diseases/yaws.html"><span
id="act54">Yaws</span></a><br />
• </span><a
href="http://www.aarogya.com/conditions-and-diseases/yellow-fever.html"><span
id="act55"><span style="font-size: small">Yellow Fever</span></span></a>
</div>
</div>
<p style="font-size: small">
</p>
</asp:Content>
and i want to add this following code
<html>
<head>
<style type="text/css">
img
{
opacity:0.4;
filter:alpha(opacity=40);
}
</style>
</head>
<body>
<h1>Image Transparency</h1>
<img src="klematis.jpg" width="150" height="113" alt="klematis"
onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100"
onmouseout="this.style.opacity=0.4;this.filters.alpha.opacity=40" />
<img src="klematis2.jpg" width="150" height="113" alt="klematis"
onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100"
onmouseout="this.style.opacity=0.4;this.filters.alpha.opacity=40" />
</body>
</html>
i dont want to affect the master page just the picture should get effected ,where to add this code ?
Maybe I'm missing something, but isn't that as simple as
<asp:ImageButton Style="opacity:0.4; filter:alpha(opacity=40);" ID="ImageButton1" ... />
When you're ready to get fancier, add a rule to a CSS file and refer to it as
<asp:ImageButton CssClass="yourclassname" ID="ImageButton1" ... />
Either way, realize the effect won't appear in all browsers.
Related
I am trying to implement Bootstrap Carousel in ASP.NET Web Forms, but bootstrap carousel is not working on site. Only images are being displayed without carousel slider. I have added css and javascript files to Site.Master and bootstrap carousel code from https://getbootstrap.com/docs/4.0/components/carousel/ site.
Default.aspx site :
<%# Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WingtipToys._Default" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<div id="MyCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" id="carousel-slides-with-controls">
<div class="carousel-item-active">
<img class="d-block w-100" src="Toys%20Images/toy%20top.jpg" alt="Top" />
</div>
<div class="carousel-item">
<img src="Toys%20Images/toy%20tank.jpg" />
</div>
<div class="carousel-item">
<img src="Toys%20Images/toy%20dinosaur.jpg" />
</div>
<a class="carousel-control-prev" href="#" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" area-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#" role="button" data-slide="next">
<span class="carousel-control-next-icon" area-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.</p>
<p>Learn more »</p>
</div>
<div class="row">
<div class="col-md-4">
<h2>Getting started</h2>
<p>
ASP.NET Web Forms lets you build dynamic websites using a familiar drag-and-drop, event-driven model.
A design surface and hundreds of controls and components let you rapidly build sophisticated, powerful UI-driven sites with data access.
</p>
<p>
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301948">Learn more »</a>
</p>
</div>
<div class="col-md-4">
<h2>Get more libraries</h2>
<p>
NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
</p>
<p>
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301949">Learn more »</a>
</p>
</div>
<div class="col-md-4">
<h2>Web Hosting</h2>
<p>
You can easily find a web hosting company that offers the right mix of features and price for your applications.
</p>
<p>
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkId=301950">Learn more »</a>
</p>
</div>
</div>
</asp:Content>
Site.Master Code :
<%# Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WingtipToys.SiteMaster" %>
<!DOCTYPE html>
<html lang="en">
<head runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%: Page.Title %> - My ASP.NET Application</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<webopt:bundlereference runat="server" path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="Content/bootstrap.css" rel="stylesheet" />
<link href="Content/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<form runat="server">
<asp:ScriptManager runat="server">
<Scripts>
<%--To learn more about bundling scripts in ScriptManager see https://go.microsoft.com/fwlink/?LinkID=301884 --%>
<%--Framework Scripts--%>
<asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="bootstrap" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />
<%--Site Scripts--%>
</Scripts>
</asp:ScriptManager>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" runat="server" href="~/">Application name</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a runat="server" href="~/">Home</a></li>
<li><a runat="server" href="~/About">About</a></li>
<li><a runat="server" href="~/Contact">Contact</a></li>
</ul>
<asp:LoginView runat="server" ViewStateMode="Disabled">
<AnonymousTemplate>
<ul class="nav navbar-nav navbar-right">
<li><a runat="server" href="~/Account/Register">Register</a></li>
<li><a runat="server" href="~/Account/Login">Log in</a></li>
</ul>
</AnonymousTemplate>
<LoggedInTemplate>
<ul class="nav navbar-nav navbar-right">
<li><a runat="server" href="~/Account/Manage" title="Manage your account">Hello, <%: Context.User.Identity.GetUserName() %> !</a></li>
<li>
<asp:LoginStatus runat="server" LogoutAction="Redirect" LogoutText="Log off" LogoutPageUrl="~/" OnLoggingOut="Unnamed_LoggingOut" />
</li>
</ul>
</LoggedInTemplate>
</asp:LoginView>
</div>
</div>
</div>
<div class="container body-content">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<hr />
<footer>
<p>© <%: DateTime.Now.Year %> - My ASP.NET Application</p>
</footer>
<script src="Scripts/jquery-3.5.1.slim.js"></script>
<script src="Scripts/bootstrap.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script src="Scripts/modernizr-2.8.3.js"></script>
</div>
</form>
</body>
</html>
Are you sure of the version of Bootstrap in Content/bootstrap.css? The ASP.Net Web Application (.Net Framework) template installs Bootstrap v3.4.1 by default.
the following code would cause a 404 error. removing the code [itemtype="https://schema.org/BreadcrumbList"], then there is no error but using breadcrumb checker to validate the page, it is not recognized as breadcrumb. may i know which portion i am doing it wrong?
<asp:SiteMapPath ID="SiteMapPath1" itemtype="https://schema.org/BreadcrumbList" SkipLinkText="" runat="server" >
<NodeTemplate><a itemprop="item" href='<%#Eval("url") %>'><span itemprop="name"><%# Eval("title") %></span></a></NodeTemplate>
</asp:SiteMapPath>
asp:SiteMapPath itself doesn't have itemtype property so the error (in fact 5xx not 404). So the code should be a little more elaborated. Something like this.
<nav itemscope itemtype="http://schema.org/BreadcrumbList"><%--wrapper--%>
<asp:SiteMapPath ID="SiteMapPath1" runat="server" PathSeparator=" : ">
<NodeTemplate>
<span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement"><%--wrapper for each breadcrumb--%>
<meta itemprop="position" content="<%#Container.ItemIndex+1 %>" /> <%--required by Google --%>
<a itemprop="item url" href='<%#Eval("url") %>'>
<span itemprop="name"><%# Eval("title") %></span>
</a>
</span>
</NodeTemplate>
</asp:SiteMapPath>
</nav>
And this is generated HTML
<nav itemscope itemtype="http://schema.org/BreadcrumbList">
<span id="SiteMapPath1"><img alt="Skip Navigation Links" src="/WebResource.axd?d=Ybg6Za1EIYGIkin6VPiwIFL99ITKyu6RhGnxJcLOO8DP1KA0-cdYa4ltoyl-vbOlqsJF4S8oq8kKVCD1XukqME04tF9L2ZSF8XWKW9sT_mc1&t=636668507379463780" width="0" height="0" style="border-width:0px;" /><span>
<span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
<meta itemprop="position" content="1" />
<a itemprop="item url" href='/'><span itemprop="name">home</span></a></span>
</span><span> : </span><span>
<span itemscope itemtype="http://schema.org/ListItem" itemprop="itemListElement">
<meta itemprop="position" content="2" />
<a itemprop="item url" href='my-page.aspx'><span itemprop="name">My Page</span></a></span>
</span><a id="SiteMapPath1_SkipLink"></a></span>
</nav>
which passed Google Structured Data Test
I am not able to get the class collapse to work. I have done the following and followed the examples online. So when I click on the Search for example, it does not expand at all.
Any help would be appreciated and below is what I did.
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<div class="container override-visible-sm">
<div class="row">
<p aria-controls="footerLink-Search" aria-expanded="false" data-toggle="collapse" href='##footerLink-Search' role="button">
<strong><span class="text-primary">Search</span></strong>
</p>
<div class="collapse" id="footerLink-Search">
Doctor Finder<br />
Urgent Care Finder<br />
Affiliated Hospitals
<br />
<br />
</div>
<p aria-controls="footerLink-AboutUs" aria-expanded="false" data-toggle="collapse" href="##footerLink-AboutUs" role="button">
<strong><span class="text-primary">About Us</span></strong>
</p>
<div class="collapse" id="footerLink-AboutUs">
Our Code of Conduct<br />
Compliance & Resources<br />
Our Award<br />
Our Health Plans<br />
Our Mission & History<br />
Our Leaders<br />
Our Organization & History<br />
<a data-toggle="modal" href="##regalprivacy">Privacy Notice</a>
<br />
<br />
</div>
<p aria-controls="footerLink-PatientResources" aria-expanded="false" data-toggle="collapse" href="##footerLink-PatientResources" role="button">
<strong><span class="text-primary">Patients Resources</span></strong>
</p>
<div class="collapse" id="footerLink-PatientResources">
Community Events<br />
Programs & Resources<br />
Patient Portal<br />
Patient Rights <br />
Vital Care<br />
Frequently asked Questions<br />
Appointment Preparation
<br />
<br />
</div>
<p aria-controls="footerLink-ProviderResources" aria-expanded="false" data-toggle="collapse" href="##footerLink-ProviderResources" role="button">
<strong><span class="text-primary">Provider Resources</span></strong>
</p>
<div class="collapse" id="footerLink-ProviderResources">
Vital Care Service<br />
Regal Access Express<br />
Claims Information<br />
National Provider Information<br />
California Immunization Registry <br />
Electronic Claims<br />
Compliance News Letter
<br />
<br />
</div>
<p aria-controls="footerLink-NewsAndEvents" aria-expanded="false" data-toggle="collapse" href="##footerLink-NewsAndEvents" role="button">
<strong><span class="text-primary">News and Events</span></strong>
</p>
<div class="collapse" id="footerLink-NewsAndEvents">
We Speak your Language<br />
Heritage Newsletter
<br />
<br />
</div>
<p aria-controls="footerLink-Careers" aria-expanded="false" data-toggle="collapse" href="##footerLink-Careers" role="button">
<strong><span class="text-primary">Careers</span></strong>
</p>
<div class="collapse" id="footerLink-Careers">
Why Join Us<br />
Administrative Careers<br />
Provider Careers
<br />
<br />
</div>
<p aria-controls="footerLink-Connect" aria-expanded="false" data-toggle="collapse" href="##footerLink-Connect" role="button">
<strong><span class="text-primary">Connect</span></strong>
</p>
<div class="collapse" id="footerLink-Connect">
Contact<br />
Brokers<br />
<img alt="Facebook" height="25" src="/regal_prod/Regal-en-us/assets/Image/social-facebook.gif" style="padding-bottom: 5px;" width="25" /><br />
<img alt="YouTube" height="25" src="/regal_prod/Regal-en-us/assets/Image/social-youtube.gif" style="padding-bottom: 5px;" width="25" /><br />
<img alt="LinkedIn" height="25" src="/regal_prod/Regal-en-us/assets/Image/social-linkedin.gif" width="25" />
<br />
<br />
</div>
</div>
</div>
</div>
Here is the same code with bootstrap (css and js) and jquery and it seems to work:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<div class="container override-visible-sm">
<div class="row">
<p aria-controls="footerLink-Search" aria-expanded="false" data-toggle="collapse" href='##footerLink-Search' role="button">
<strong><span class="text-primary">Search</span></strong>
</p>
<div class="collapse" id="footerLink-Search">
Doctor Finder
<br />
Urgent Care Finder
<br />
Affiliated Hospitals
<br />
<br />
</div>
<p aria-controls="footerLink-AboutUs" aria-expanded="false" data-toggle="collapse" href="##footerLink-AboutUs" role="button">
<strong><span class="text-primary">About Us</span></strong>
</p>
<div class="collapse" id="footerLink-AboutUs">
Our Code of Conduct
<br />
Compliance & Resources
<br />
Our Award
<br />
Our Health Plans
<br />
Our Mission & History
<br />
Our Leaders
<br />
Our Organization & History
<br />
<a data-toggle="modal" href="##regalprivacy">Privacy Notice</a>
<br />
<br />
</div>
<p aria-controls="footerLink-PatientResources" aria-expanded="false" data-toggle="collapse" href="##footerLink-PatientResources" role="button">
<strong><span class="text-primary">Patients Resources</span></strong>
</p>
<div class="collapse" id="footerLink-PatientResources">
Community Events
<br />
Programs & Resources
<br />
Patient Portal
<br />
Patient Rights
<br />
Vital Care
<br />
Frequently asked Questions
<br />
Appointment Preparation
<br />
<br />
</div>
<p aria-controls="footerLink-ProviderResources" aria-expanded="false" data-toggle="collapse" href="##footerLink-ProviderResources" role="button">
<strong><span class="text-primary">Provider Resources</span></strong>
</p>
<div class="collapse" id="footerLink-ProviderResources">
Vital Care Service
<br />
Regal Access Express
<br />
Claims Information
<br />
National Provider Information
<br />
California Immunization Registry
<br />
Electronic Claims
<br />
Compliance News Letter
<br />
<br />
</div>
<p aria-controls="footerLink-NewsAndEvents" aria-expanded="false" data-toggle="collapse" href="##footerLink-NewsAndEvents" role="button">
<strong><span class="text-primary">News and Events</span></strong>
</p>
<div class="collapse" id="footerLink-NewsAndEvents">
We Speak your Language
<br />
Heritage Newsletter
<br />
<br />
</div>
<p aria-controls="footerLink-Careers" aria-expanded="false" data-toggle="collapse" href="##footerLink-Careers" role="button">
<strong><span class="text-primary">Careers</span></strong>
</p>
<div class="collapse" id="footerLink-Careers">
Why Join Us
<br />
Administrative Careers
<br />
Provider Careers
<br />
<br />
</div>
<p aria-controls="footerLink-Connect" aria-expanded="false" data-toggle="collapse" href="##footerLink-Connect" role="button">
<strong><span class="text-primary">Connect</span></strong>
</p>
<div class="collapse" id="footerLink-Connect">
Contact
<br />
Brokers
<br />
<a href="http://www.facebook.com/RegalMed/?fref=nf" target="_blank">
<img alt="Facebook" height="25" src="/regal_prod/Regal-en-us/assets/Image/social-facebook.gif" style="padding-bottom: 5px;" width="25" />
</a>
<br />
<a href="http://www.youtube.com/watch?v=JJGHPbmiCPQ" target="_blank">
<img alt="YouTube" height="25" src="/regal_prod/Regal-en-us/assets/Image/social-youtube.gif" style="padding-bottom: 5px;" width="25" />
</a>
<br />
<a href="http://www.linkedin.com/company/4167163?" target="_blank">
<img alt="LinkedIn" height="25" src="/regal_prod/Regal-en-us/assets/Image/social-linkedin.gif" width="25" />
</a>
<br />
<br />
</div>
</div>
</div>
</div>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
I am working on a website and am having problems with the CSS on the IPAD (and possibly the iPhone).
Basically on the Sponsors page: http://www.tcsdesignreno.com/fsw/?page_id=1149. I am getting a red background behind the different sections. I think it has to do with the H3 tags that have a red background.
The same thing happens here: http://www.tcsdesignreno.com/fsw/?page_id=1165. They both are using the Easy Columns plugin in Wordpress.
Here is some sample HTML
<h3 class="sponsor-hdr" style="text-align: center;">Advertising and Media Partners</h3>
<div class="ezcol ezcol-one-third">
<p><a title="Fire Rescue 1" href="http://www.firerescue1.com/" target="_blank"><img class=" size-full wp-image-1238 aligncenter" src="http://www.tcsdesignreno.com/fsw/wp-content/uploads/2014/12/161_FR1_FC_Logo_Stacked.jpg" alt="FireRescue1.com, Fire Chief" width="161" height="93" /></a></p>
</div>
<div class="ezcol ezcol-two-third ezcol-last">
<p><strong>FireRescue1 / Fire Chief</strong><br />
200 Green St.<br />
2nd Floor<br />
San Francisco, CA 94111<br />
Phone: 415-962-5912</p>
</div><div class="ezcol-divider"></div>
<div class="ezcol ezcol-one-third">
<p><a title="CSFA" href="http://www.csfa.net/" target="_blank"><img class=" size-full wp-image-1233 aligncenter" src="http://www.tcsdesignreno.com/fsw/wp-content/uploads/2014/12/116_LatestCSFA-3_5_x_2_75_Logo.jpg" alt="California State Firefighters' Assn " width="116" height="91" /></a></p>
</div>
<div class="ezcol ezcol-two-third ezcol-last">
<p><strong>California State Firefighters’ Assn </strong><br />
2701 K Street, Suite 201<br />
Sacramento, CA 95816<br />
Phone: 800-451-2732<br />
Fax: 916-446-9889</p>
</div><div class="ezcol-divider"></div>
<h3 class="sponsor-hdr" style="text-align: center;">Program Sponsors</h3>
<div class="ezcol ezcol-one-third"><a title="FPAN" href="http://www.fpanevada.org/" target="_blank"><img class="aligncenter size-full wp-image-1232" src="http://www.tcsdesignreno.com/fsw/wp-content/uploads/2014/12/116_FPAN_Logo_Color.jpg" alt="FPAN" width="116" height="116" /></a></div>
<div class="ezcol ezcol-two-third ezcol-last">
<p>In appreciation to:<br />
<strong>Fire Prevention Association of Nevada</strong><br />
<strong>National Code Services Association</strong></p>
</div><div class="ezcol-divider"></div>
<h3 class="sponsor-hdr" style="text-align: center;">Tote Bag Sponsors</h3>
<div class="ezcol ezcol-one-third"><a title="Burton's Fire" href="http://www.burtonsfire.com/" target="_blank"><img class="aligncenter size-full wp-image-1236" src="http://www.tcsdesignreno.com/fsw/wp-content/uploads/2014/12/158_BURTONS_FIRE_INC_LOGO.jpg" alt="BURTONS FIRE" width="158" height="54" /></a></p>
</div>
<div class="ezcol ezcol-two-third ezcol-last">
<p><strong>Burton’s Fire</strong><br />
1301 Doker Avenue<br />
Modesto, CA 95351<br />
209-544-3161</p>
</div><div class="ezcol-divider"></div>
<div class="ezcol ezcol-one-third"><a title="Waterous" href="http://www.waterousco.com/" target="_blank"><img class="aligncenter size-full wp-image-1237" src="http://www.tcsdesignreno.com/fsw/wp-content/uploads/2014/12/158_WaterousLogoSm.jpg" alt="Waterous" width="155" height="29" /></a></p>
</div>
CSS:
h3 {
background-color: #990000;
color: #ffffff;
padding: 10px 0;
text-align: center;
width: 100%;
max-height:92px;
}
Here is an image:
Can anyone see why these sections are showing up in red? For the life of me I can't seem to figure it out.
Looks like your floats aren't clearing. You can add this to your current styles:
.singlepost .content-entry h3 {
clear: both;
}
My CSS validates on W3C and I have proper container divs and child divs and have float elements within child divs.
The following CSS works in Firefox and Chrome. But cant make out why ie9 dislikes it or vice versa.
The CSS :
.container{margin:0px auto;width:1200px;border:1px solid #e5e4e2;}
.toppanel{width:1200px;text-align:center;height:100px;background-color:#a1b8a3;margin-top:-20px}
.lpanel{float:left;width:250px;height:1000px;border:1px solid #e5e4e2;background-color:#233245;padding:10px;color:white}
.lpanel2{width:190px;height:500px;margin:0px auto;background-color:white;color:maroon;padding:20px;text-align:center;}
.rpanel{float:right;width:250px;height:1000px;border:1px solid #e5e4e2;background-color:#e4e5e2;padding:10px}
.rpanel1{width:250px;margin:0px auto;}.rpanel2{margin:0px auto;width:250px;}
.midpanel{width:800px;height:1000px;border:1px solid #e5e4e2;margin:0px auto;background-color:beige}
.middle1{margin:0px auto;width:800px;}.middlemainimg{padding:10px;}.middlemainimg img{margin:10px;width:270px;height:255px}
.middle1r{float:right;width:300px;height:205px;background-color:white;margin-top:-280px;margin-right:10px;padding:20px}
.middle2{margin:0px auto;width:750px;text-align:center;margin-top:10px;margin-bottom:5px}
.middle3{margin:0px auto;width:600px;margin-top:15px}
.middle4{margin:0px auto;padding:10px;margin-top:0px;float:left;margin-top:10px;margin-left:10px;width:250px}
.middle4r{margin-left:300px;width:470px;background-color:white;height:170px;margin-top:40px}
.middlelast{margin:0px auto;width:750px;height:250px;background-color:white;margin-top:20px;padding:20px;text-align:center;}
.middlelast img{margin-left:30px;width:120px;height:90px;}
.bottompanel{clear:both;width:1200px;height:100px;border:1px solid #e5e4e2;text-align:center;background-color:#cccccc}
.bottompanel ul li{display:inline;margin:10px}
.imgcar {width:140px;height:60px;padding:2px;border:2px solid grey;cursor:pointer;}
#carousel {
width: 600px;
overflow:hidden;
height:75px;
background-color:white;
}
#carousel ul {
width: 1600px;
padding: 3px;
margin: 0;
height:75px;
}
#carousel ul li {
width:750px;
text-align: center;
height: 30px;
list-style: none;
float: left;
}
The HTML :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta name="generator"
content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />
<title>NA Plots on Murbad-Karjat Highway</title>
<meta name="title" content="NA Plots on Murbad-Karjat Highway" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="application-name" content="Landshoppe.com - The Free Property Site" />
<meta name="msapplication-tooltip" content="Landshoppe.com - The Free Property Site" />
<meta name="msapplication-window" content="width=1500;height=900" />
<meta name="msapplication-task"
content="name=Search property;action-uri=http://www.landshoppe.com/;icon-uri= http://www.landshoppe.com/favicon.ico" />
<meta name="msapplication-task"
content="name=Property Search;action-uri=http://www.landshoppe.com/searchdetails;icon-uri= http://www.landshoppe.com/favicon.ico" />
<meta name="msapplication-task"
content="name=Property Registration;action-uri=http://www.landshoppe.com/registration;icon-uri= http://www.landshoppe.com/favicon.ico" />
<meta name="msapplication-task"
content="name=Landshoppe Log in;action-uri=http://www.landshoppe.com/Login;icon-uri= http://www.landshoppe.com/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="msvalidate.01" content="8206EB8E37D990E86837A5ED472D65A3" />
<meta name="author" content="landshoppe" />
<meta name="copyright" content="" />
<meta http-equiv="Reply-to" content="anit#landshoppe.com" />
<meta name="ROBOTS" content="noodp,INDEX,FOLLOW" />
<meta name="creation_Date" content="09/30/2012" />
<meta name="revisit-after" content="1 days" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<meta name="copyright" content="Landshoppe" />
<meta name="classification" content="Real Estate, Properties, Real Estate Agents, Search Property Online" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3" />
<link rel="apple-touch-icon" href="image1013.png" />
<link rel="stylesheet" href="project.css" type="text/css" />
<link rel="stylesheet" href="project.css" type="text/css" media="print" />
<link rel="stylesheet" href="project.css" type="text/css" media="handheld" />
<link rel="stylesheet" href="project.css" type="text/css" media="only screen and (max-device-width: 480px)" />
<link rel="alternate" type="application/rss+xml" title="LANDSHOPPE RSS Feed" href="http://www.landshoppe.com/feed.xml" />
<link href='apple_image1013.JPG' rel='apple-touch-icon' />
</head>
<body>
<!-- <script type="text/javascript" src="jav.js"></script>-->
<!--[if lte IE 6]>
<div id="warning">
<h4 class="red">Your Browser Is Not Supported!</h4><br>
<p>Please upgrade to <span class='bold'>Close Window</span></p>
</div>
<![endif]-->
<!--[if lte IE 7]>
<div id="warning">
<h4 class="red">Your Browser Is Not Supported!</h4>
<p>Please upgrade to <span class='bold'>Close Window</span></p>
</div>
<![endif]-->
<div class="container">
<div class="toppanel">
<a href="index.htm" title="The Free Property Website">
<img src="logo.jpg" alt="The Free Property Website" style="float:left;margin:10px;width:150px;height:80px" />
</a>
<a href="index.htm" title="Best Real Estate Website">
<img src="image1013.png" alt="Best Real Estate Website" style="float:right;margin:10px;width:150px;height:80px" />
</a>
<h1>Landshoppe</h1>
<h3>The Property Destination</h3></div>
<div class="lpanel">
<div>
<h3>Landshoppe</h3>
</div>
<div>
<p>Established in 2009 as an offline Real Estate Agency, Landshoppe became a Free Real Estate portal in 2010 to cater to
the online demand for quick and easy property search/sale and rentals. Indigenously developed, the portal has evolved
continously - offering online and offline real estate services.</p>
</div>
<div class="lpanel2">
<h3>Other Projects</h3>
<ul>
<li>Project 1
<br />Location 1</li>
<li>Project 2
<br />Location 2</li>
<li>Project 3
<br />Location 3</li>
</ul>
</div>
</div>
<div class="rpanel">
<div class="rpanel1">
<!-- <iframe width="260" height="250" frameborder="0" marginheight="0" marginwidth="0"
scrolling="no" src="https://maps.google.co.in/maps?f=q&source=s_q&hl=en&geocode=&q=Thane&aq=&sll=18.815427,76.775144&sspn=7.710738,15.644531&ie=UTF8&hq=&hnear=Thane,+Maharashtra&ll=19.218331,72.97809&spn=0.240504,0.488892&t=m&z=11&iwloc=A&output=embed"></iframe><br />
<small>View Larger Map</small>-->
<h3>Property Address</h3>Mr Parhar
<br />9322633301 | parharbt#yahoo.com
<br />www.parharestate.com</div>
<div class="rpanel2">
<h3>Contact Us</h3>
<form action="" method="post">
<input type="hidden" name="toemail" value="parharbt#yahoo.com" />
<input type="hidden" name="title" value="Mr" /> Message
<br />
<textarea name="message" rows="10" cols="28"></textarea>
<br />Name :
<input type="text" name="fname" />
<br />Mobile :
<input type="text" name="fmob" />
<br />Email :
<input type="text" name="fmail" />
<br />
<input type="submit" name="msgsub" value="Send Message" /></form>
</div>
</div>
<div class="midpanel">
<div class="middle1">
<div class="middlemainimg">
<img src="upload/New-Real-Estate-Projects-in-Murbad%20Karjat-7148Parhar9322633301.jpg"
alt="NA PLOTS ON MURBAD-KARJAT HIGHWAY" />
</div>
<div class="middle1r">
<h3>Na Plots On Murbad-karjat Highway</h3>
<p>Available for sale on Murbad -Karjat Highway. NA Sanctioned Plots with Cement Pole Fencing with gate for each Plot.
Electricity line available till each Plot.Rate 240-PSF Plot size 4475 sq feet</p>
</div>
</div>
<div class="middle2">
<h3>Project Highlights</h3>* The Best Free Real Estate Website
<br />* All properties and Property Related Services Available here
<br />* Blogs and Question/Answers forums
<br />* Free Member Pages and Project Pages</div>
<div class="middle3">
<div id="carousel">
<ul>
<li>
<img src="image1272.jpg" alt="image1272.jpg" class="imgcar" />
<img src="image1526.jpg" alt="image1526.jpg" class="imgcar" />
<img src="image1574.jpg" alt="image1574.jpg" class="imgcar" />
<img src="image1077.jpg" alt="image1077.jpg" class="imgcar" />
<img src="image7251.jpg" alt="image7251.jpg" class="imgcar" />
</li>
<li>
<img src="image1272.jpg" alt="image1272.jpg" class="imgcar" />
<img src="image1526.jpg" alt="image1526.jpg" class="imgcar" />
<img src="image1574.jpg" alt="image1574.jpg" class="imgcar" />
<img src="image1077.jpg" alt="image1077.jpg" class="imgcar" />
<img src="image7251.jpg" alt="image7251.jpg" class="imgcar" />
</li>
</ul>
</div>
<!-- <div id="viewer">
<div><h3>Swimming Pool <br>(<span class="pointer" id="closev1" style="color:yellow">Click anywhere to Close</span>)</h3><img src="Images/pool_sunrise.jpg" alt="Swimming Pool" /></div>
<div><h3>Star Gazing <br>(<span class="pointer" id="closev2" style="color:yellow">Click anywhere to Close</span>)</h3><img src="Images/star-gazing.gif" alt="Star Gazing" /></div>
<div><h3>Passage <br>(<span class="pointer" id="closev3" style="color:yellow">Click anywhere to Close</span>)</h3><img src="Images/welcome3.jpg" alt="Passage" /></div>
<div><h3>Bon Fire <br>(<span class="pointer" id="closev4" style="color:yellow">Click anywhere to Close</span>)</h3><img src="Images/bonfire.jpg" alt="Bonfire" /></div>
<div><h3>Wash Room <br>(<span class="pointer" id="closev5" style="color:yellow">Click anywhere to Close</span>)</h3><img src="Images/washroom.jpg" alt="Wash Room" /></div>
<div><h3>Pool and Accomodation <br>(<span class="pointer" id="closev6" style="color:yellow">Click anywhere to Close</span>)</h3><img src="Images/room_pool.jpg" alt="Pool and Accomodation" /></div>
<div><h3>Lake <br>(<span class="pointer" id="closev7" style="color:yellow">Click anywhere to Close</span>)</h3><img src="Images/lake.jpg" alt="Lake" /></div>
<div><h3>Bed <br>(<span class="pointer" id="closev8" style="color:yellow">Click anywhere to Close</span>)</h3><img src="Images/bed.jpg" alt="Bed" /></div>
</div>-->
</div>
<div class="middle4">
<h3>Locality Highlights</h3>
<img style="margin:0px auto" src="locationmap.png" width="150" height="100" />
</div>
<div class="middle4r">
<h3>Distances to nearby facilities</h3>* Railway Station : _ Km/s
<br />* Hospital : _ Km/s
<br />* School : _ Km/s
<br />* Market : _ Km/s
<br /></div>
<div class="middlelast">
<h3>Property View</h3>
<img src="image12701.jpg" alt="image12701.jpg" />
<img src="image12741.jpg" alt="image12741.jpg" />
<img src="image15841.jpg" alt="image15841.jpg" />
<img src="image15911.jpg" alt="image15911.jpg" /></div>
</div>
<div class="bottompanel">
<ul>
<li>About us</li>
<li>Contact us</li>
<li>Our offices</li>
<li>Sites</li>
</ul>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.bxSlider.min.js"></script>
<script type="text/javascript" src="js/jquery.cycle.all.js"></script>
<script type="text/javascript" src="js/jav2.js"></script>
</body>
</html>
Is it the FLOAT format ? Because the left and right floats are getting messed up. I have googled a lot but couldn't make out what could possibly be the reason ? It is also behaving different on my local machine and the server ! In the local machine, the right/left floats are not working and on the server, the middle div is laying out below after the right/left divs.
On the server, my IE6 and IE7 warnings are throwing up on IE9 too !
The url
http://www.landshoppe.com/project-page?dafid=30
You need to clear the lpanel. The images on the toppanel are affecting the floats.
<div class="lpanel" style="clear: both;">
Don't use inline styles in production though.
#Spudley mentioned you have <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> in your code, note that this should never be used in production of a new site, it is intended to help keep old non-standards compliant sites (i.e. built to accommodate for bugs in older versions) working in newer versions of IE.