TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dr.Khalid Waleed
NA
23
601
any one can help me my freinds
Jul 4 2020 3:25 PM
Hi I create 2 pages with 2 master page each page joined with one master page (by visual studio2019) first page which it joined with first master page all html tags with css work okay includes (a href tag through hover mouse) but second page which it joined with second master page not okay (I mean when the mouse hover of any cars brand the cursr not change to pointer while I mentioned this in css file ) however, when I transfer same code in which it mentioned in second page to first page and put the css link in top of first master page the code will work fine and the mouse hover woked normaly just when second page joined with second master page the hover mouse not work and the a href tag not work so could you help to fine where is the error and i print the code of second master page with the code of second page and css file in attached file you can view it.
Second master page
<%@ Master Language=
"C#"
AutoEventWireup=
"true"
CodeBehind=
"second-user-master.master.cs"
Inherits=
"deer.user.second_user_master"
%>
<!DOCTYPE html>
<html>
<head runat=
"server"
>
<meta charset=
"UTF-8"
/>
<meta name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
/>
<title></title>
<link rel=
"stylesheet"
href=
"css/c1.css"
>
<link rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"
/>
<link rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css?family=Open+Sans:400,300"
/>
<asp:ContentPlaceHolder ID=
"head"
runat=
"server"
>
</asp:ContentPlaceHolder>
</head>
<body>
<form id=
"f1"
runat=
"server"
>
<div>
<div
class
=
"holder2"
>
<div
class
=
"for-head2"
>
<a href=
"#"
>
<img
class
=
"img-pro-logo2 trackable"
src=
"icon/122.png"
>
</a>
<header
class
=
"header2"
>
<nav
class
=
"nav-header2"
>
<input type=
"checkbox"
id=
"css-toggle-menu"
name=
"css-toggle-menu"
>
<ul
class
=
"main"
>
<li><a href=
"#"
>Home</a></li>
<li><a href=
"#"
>Services</a></li>
<li><a href=
"#"
>Contact</a></li>
<li><a href=
"#"
>Login</a></li>
<li><a href=
"#"
>Sign up</a></li>
<li><a href=
"#"
>Settings</a></li>
</ul>
</nav>
</header>
</div>
<!--Start here div.master2 has style
for
image background-->
<div
class
=
"master2"
style="background:white
url(images/background-image-2.gif) repeat fixed;">
<!--End here div.master2 has style
for
image background-->
<div
class
=
"find-faster2"
>
<div
class
=
"for-advertise2 for-distance"
>
<img
class
=
'photo2'
src=
"images/1.jpg"
alt=
"Adv1"
/>
<img
class
=
'photo2'
src=
"images/2.jpg"
alt=
"Adv2"
/>
<img
class
=
'photo2'
src=
"images/3.jpg"
alt=
"Adv3"
/>
<img
class
=
'photo2'
src=
"images/4.jpg"
alt=
"Adv4"
/>
</div>
</div>
</div>
<div
class
=
"clearfix"
></div>
<asp:ContentPlaceHolder ID=
"c2"
runat=
"server"
>
</asp:ContentPlaceHolder>
<!--Start footer part
for
second page -->
<div
class
=
"footer_parent2 "
>
<div
class
=
"footer_sub2"
>
<div id=
"footer_listing2"
>
<a title=
"About Us"
href=
"https://kk/about/index.htm?ca=9_s"
>
<span
for
=
"footer_aboutus"
>About Us</span>
</a>
| <a title=
"Rules"
href=
"https://kk/about/index.htm?"
><span >Rules</span></a>
|
<a title=
"Post Free Ad"
href=
"https://kk/ai"
><span >Post Free Ad</span></a>
|
<a title=
"Shop Safely"
href=
"https://kk/security/index.htm"
><span >Shop Safely</span></a>
|
<a title=
"Banner Advertising"
href=
"https://kk/support/form/0?"
><span >Banner Advertising</span></a>
|
<a title=
"Contact Us"
href=
"https://kk/support.htm?ca=9_s"
><span >Contact Us</span></a>
|
<a title=
"Careers"
href=
"https://kk.my"
><span >Careers</span></a>
|
<a href=
"https://kk/about/"
title=
"Terms and Conditions of Use"
><span >Terms</span></a>
|
<a href=
"https://kk/about/index.htm?ca=9_s&page=pp"
title=
"Privacy Policy"
><span >Privacy</span></a>
<span
class
=
"copyright_text_listing"
><a title=
"deer "
href=
"https://kk/about/index.htm?ca=9_s&page=about#2d"
>© deer </a> </span>
</div>
</div>
</div>
</div>
<!--End footer part from second page to all project except first page-->
</div>
</form>
</body>
</html>
Second page (page joined with second master page)
<%@ Page Title=
""
Language=
"C#"
MasterPageFile=
"~/user/second-user-master.Master"
AutoEventWireup=
"true"
CodeBehind=
"secondpage-cars-page.aspx.cs"
Inherits=
"deer.user.secondpage_cars_page"
%>
<asp:Content ID=
"Content1"
ContentPlaceHolderID=
"head"
runat=
"server"
>
</asp:Content>
<asp:Content ID=
"Content2"
ContentPlaceHolderID=
"c2"
runat=
"server"
>
<div
class
=
"car-markes-container"
>
<div
class
=
"upper-homepage2"
>
<div
class
=
"homepage-size2"
>
<div
class
=
"category"
>
<div
class
=
"category-items2"
>
<a href=
"index.aspx"
class
=
"trackable trackable33"
>
<img src=
"images/19.jpg"
/>
<div>Toyota</div>
</a>
<a href=
"https://www.google.com"
class
=
"trackable"
>
<img src=
"images/20.png"
/>
<div>Lexus </div>
</a>
<a href=
"thirdpage.aspx"
class
=
"trackable"
>
<img src=
"images/21.png"
/>
<div>Nissan</div>
</a>
<a href=
" thirdpage2.aspx "
class
=
"trackable"
>
<img src=
"images/22.png"
/>
<div>Mazda</div>
</a>
<a href=
"https://kk /Services-available-7040#lm=1"
class
=
"trackable"
>
<img src=
"images/23.jpg"
/>
<div>Mitsubishi</div>
</a>
<a href=
"https://kk/ Sports-Outdoors-for-sale-5020#lm=1"
class
=
"trackable"
>
<img src=
"images/24.png"
/>
<div>Hyundai</div>
</a>
<a href=
"https://www.google.com "
class
=
"trackable"
>
<img src=
"images/25.png"
/>
<div>KIA</div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/26.png"
/>
<div>BMW</div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/27.png"
/>
<div>Mercedes Benz</div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable trackable34"
>
<img src=
"images/28.jpg"
/>
<div>Volkswagen</div>
</a>
</div>
<br>
<!--start of second line-->
<div
class
=
"category-items2"
>
<a href=
"cars-page.aspx"
class
=
"trackable trackable33"
runat=
"server"
>
<img src=
"images/29.png"
/>
<div>Mini Cooper</div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/30.png"
/>
<div>Audi</div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/31.png"
/>
<div>Opel</div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/32.png"
/>
<div>Ford</div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/33.png"
/>
<div>Infinity </div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/34.png"
/>
<div>Shoverlet </div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/35.png"
/>
<div>Jeep</div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/36.png"
/>
<div>Dodge</div>
</a>
<a href=
" https://www.google.com "
class
=
"trackable"
>
<img src=
"images/37.png"
/>
<div>Chery</div>
</a>
<a href=
" https://www.google.com "
data-toggle=
"modal"
data-target=
"#otherCatModal"
class
=
"trackable trackable34"
>
<img src=
"images/theedots.png"
/>
<div>All Makes/Others</div>
</a>
</div>
<!--End of second line-->
</div>
</div>
</div>
</div>
</asp:Content>
Css file(c1.css)
*{
margin: 0px;
padding: 0px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
body {
height: 1400px;
}
div.holder2 {
}
/* Strat css for logo and top-head */
div.
for
-head2 {
background-color: white;
height: 80px;
}
.img-pro-logo2 {
width: 105px;
float
: left;
height: 80px;
margin-top: -13px;
margin-left: 5px;
margin-right: 100px;
}
/* Start nav header in second page*/
.header2 {
font-size: 62.5%;
font-family:
'Open Sans'
, sans-serif;
font-size: 1.6rem;
min-height: 100vh;
position: relative;
top: 12px;
}
ul {
display: block;
list-style-type: disc;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
padding-inline-start: 0px;
}
nav ul {
display: flex;
flex-wrap: wrap;
max-width: 1080px;
background: #999;
list-style: none;
}
nav ul,
nav li {
flex: 1;
}
nav li:last-child {
border-bottom: none;
}
nav a {
text-decoration: none;
color: inherit;
display: block;
font-size: 18px;;
}
nav a:hover {
background: #EEB422;
color: black;
}
nav li {
position: relative;
line-height: 50px;
color: #fff;
text-align: center;
}
nav input,
nav label {
display: none;
width: 36px;
height: 36px;
background: #555;
color: #fff;
text-align: center;
line-height: 36px;
font-size: 1.6rem;
border-radius: 2px;
}
nav label {
position: absolute;
top: 8px;
right: 8px;
transition: .4s;
}
nav label:hover {
cursor: pointer;
}
nav label:before {
font-family: FontAwesome;
font-size: 24px;
content:
"\f0c9"
;
text-align: center;
}
/************* MEDIA QUERIES **************/
@media only screen and (max-width: 1080px) {
nav {
position: relative;
}
nav ul {
transform: translateY(0);
box-shadow: 0 0 5px rgba(0,0,0, .7);
transition: all .5s;
position: absolute;
width: 100%;
}
nav li {
flex: none;
width: 100%;
border-bottom: solid 1px #777;
}
nav input[type=
"checkbox"
]:checked + ul {
transform: translateY(-100%);
width: 100%;
background: #999;
transition: all .5s;
}
nav label {
display: block;
}
nav input[type=
"checkbox"
]:checked + ul li:nth-child(1) {
background: #777;
color: #fff;
}
}
/* End css for logo and top-head */
div.master2 {
background-color: #F7F7F7;
margin-top: 5px;
margin-bottom: 5px;
height: 300px;
}
/* Start "find-faster" DIV */
div.find-faster2 {
max-height: 200px;
}
/* End "find-faster" DIV */
/* Start "fixed" DIV */
div.fixed2 {
float
: left;
height: 200px;
width: 400px;
background-color: #575757;
border-radius: 20px 20px;
position: absolute;
;
left: 100px;
margin-top: 50px;
box-shadow: 5px 5px 8px #DDD, -5px -5px 8px #DDD;
}
div.fixed2 h2 {
padding-top: 30px;
padding-left: 25px;
font-style: oblique;
font-size: 28px;
padding-bottom: 80px;
color: #EEAD0E;
}
div.fixed2 ul {
list-style-type: none;
margin-left: 10px;
padding: 0;
}
div.fixed2 ul li {
display: inline;
--c: goldenrod;
color:
var
(--c);
font-size: 14px;
border: 0.3em solid
var
(--c);
border-radius: 0.5em;
width: 12em;
height: 3.5em;
text-transform: uppercase;
font-weight: bold;
font-family: sans-serif;
letter-spacing: 0.1em;
text-align: center;
line-height: 1em;
position: relative;
overflow: hidden;
z-index: 1;
transition: 0.5s;
margin: 1em;
padding: 10px;
}
div.fixed2 ul li span {
position: absolute;
width: 25%;
height: 80%;
transform: translateY(150%);
border-radius: 50%;
left: calc((
var
(--n) - 1) * 25%);
transition: 0.5s;
transition-delay: calc((
var
(--n) - 1) * 0.1s);
z-index: -1;
}
div.fixed2 ul li:hover {
color: black;
}
div.fixed2 ul li:hover span {
transform: translateY(0) scale(2);
}
div.fixed2 ul li span:nth-child(1) {
--n: 1;
}
div.fixed2 ul li span:nth-child(2) {
--n: 2;
}
div.fixed2 ul li span:nth-child(3) {
--n: 3;
}
div.fixed2 ul li span:nth-child(4) {
--n: 4;
}
/* End "fixed" DIV */
/* Start "for-distance" DIV*/
div.
for
-advertise2 {
float
: right;
height: 267px;
width: 500px;
margin: 10px auto;
overflow: hidden;
position: relative;
border-radius: 20px;
margin-top: 18px;
margin-right: 60px;
}
.photo2 {
position: absolute;
-webkit-animation: round 16s infinite;
opacity: 0;
width: 100%;
}
@-webkit-keyframes round {
25% {
opacity: 1;
}
40% {
opacity: 0;
}
}
div.
for
-advertise2 img:nth-child(4) {
-webkit-animation-delay: 0s;
}
div.
for
-advertise2 img:nth-child(3) {
-webkit-animation-delay: 4s;
}
div.
for
-advertise2 img:nth-child(2) {
-webkit-animation-delay: 8s;
}
div.
for
-advertise2 img:nth-child(1) {
-webkit-animation-delay: 12s;
}
/* End "for-distance" DIV*/
/* Start First "clearfix" DIV*/
div.clearfix {
clear: both;
}
/* End First "clearfix" DIV*/
/*Start footer part from second page to all project except first page*/
.footer_parent2 {
width: 100%;
background-color: #808284;
border-top: 3px solid #118fb6;
position: absolute;
right: 0;
left: 0;
z-index: 100;
}
.footer_sub2 {
width: 970px;
margin: 0 auto;
padding: 0 30px;
background-color: #808284;
}
#footer_listing2 {
font-size: 12px;
font-family: Roboto,Helvetica,Arial,sans-serif;
color: #fff;
clear: both;
padding: 15px 0 5px;
white-space: nowrap;
vertical-align: baseline;
outline: 0;
font-size: 100%;
}
#footer_listing2 a:link, #footer_listing2 a:hover, #footer_listing2 a:visited {
font-size: 10px;
font-family: Roboto,Helvetica,Arial,sans-serif;
color: #fff !important;
font-weight: 400;
}
a:link {
color: #369;
text-decoration: none;
font-family: Roboto,Helvetica,sans-serif,Arial;
letter-spacing: .5pt;
font-size: 12px;
font-weight: 700;
}
.copyright_text_listing {
padding-left: 29%;
}
/*End footer part from second page to all project except first page*/
/*Start DIV for Cras-Marks-icon*/
/*Start "homepage-size" DIV*/
.cars-makes-container {
background-color: #F7F7F7;
margin-top: 5px;
margin-bottom: 5px;
height: 300px;
}
.homepage-size2 {
width: 1050px;
margin: 0 auto;
height: 278px;
padding-top: 11px;
border-width: 3px;
border-style: inset;
border-radius: 16px;
border-color: #1C6EA4;
font-family: Calibri,Bahnschrift, Helvetica, sans-serif;
margin-top:10px;
margin-bottom:5px;
}
/*End "homepage-size" DIV*/
/*Start "category-items" DIV*/
.category-items2 {
display: flex;
justify-content: space-between;
}
.category-items2 .trackable33 {
margin-left: 15px;
}
.category-items2 .trackable34 {
margin-right: 15px;
}
.category-items2 > a.trackable {
width: 94px;
height: 110px;
border: 1px solid #e6e6e6;
border-radius: 2px;
text-align: center;
background-color: #fafafa;
}
.category-items2 > a:hover {
border: 1px solid #CD0000;
border-radius: 2px;
text-align: center;
background-color: #FFFFFF;
cursor:pointer;
}
.category-items2 > a > div {
font-size: 12px;
color: #4d4d4d;
font-weight: bold;
padding: 10px 5px;
line-height: 1.3;
}
div, a, span, area, button, input {
outline: 0 !important;
text-decoration: none;
color: inherit;
}
.category-items2 > a > img {
margin: 16px 0 0;
width: 50px;
height: 47px;
}
.category-items2 img {
vertical-align: middle;
}
.category-items2 img {
border: 0;
}
/*End "category-items" DIV*/
/*End DIV for Cars-Marks-icon*/
Reply
Answers (
1
)
Store user details after login.
Image Deleted from folder But not update table