Why does my webform page not detect CSS file? - html

No matter what I do it won't detect the css file.
<link rel="stylesheet" type="text/css" href="CSS/customStyles.css" runat="server" />
I have tried to place it inside the contentplaceHolder Head both in master page and child page, i tried set path multiple ways,
<link rel="stylesheet" type="text/css" href="~/CSS/customStyles.css" runat="server" />
<link rel="stylesheet" type="text/css" href="/CSS/customStyles.css" runat="server" />
<link rel="stylesheet" type="text/css" href="CSS/customStyles.css" runat="server" />
Yet nothing works. I also read something about formvalidation and even tried to add on web.config
<location path="CSS">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
and still nothing... Whhy does it not detect the css file ??
EDIT
This is directory
UPDATE
Here's an update, I tried to create a css file on main directory and it worked, so the problem is the css file won't be detected if it's inside a directory...
<link rel="stylesheet" type="text/css" href="StyleSheet1.css" />
EDIT
Here's what seems to cause the problem
when i go to localhost:port/CSS/customStyles.css only this css appears
body {
}
.hidden {
display:none;
}
.customActive {
background-color:#cecee8;
}
.ctmHover:hover{
background-color:#cecee8;
}
However the file has all this code
body {
}
.hidden {
display: none;
}
.customActive {
background-color: #cecee8;
}
.ctmHover:hover {
background-color: #cecee8;
}
.Grid {
background-color: #fff;
margin: 5px 0 10px 0;
border: solid 1px #525252;
border-collapse: collapse;
font-family: Calibri;
color: #474747;
}
.Grid td {
padding: 2px;
border: solid 1px #c1c1c1;
}
.Grid th {
padding: 4px 2px;
color: #fff;
background: #363670 url(Images/grid-header.png) repeat-x top;
border-left: solid 1px #525252;
font-size: 0.9em;
}
.Grid .alt {
background: #fcfcfc url(Images/grid-alt.png) repeat-x top;
}
.Grid .pgr {
background: #363670 url(Images/grid-pgr.png) repeat-x top;
}
.Grid .pgr table {
margin: 3px 0;
}
.Grid .pgr td {
border-width: 0;
padding: 0 6px;
border-left: solid 1px #666;
font-weight: bold;
color: #fff;
line-height: 12px;
}
.Grid .pgr a {
color: Gray;
text-decoration: none;
}
.Grid .pgr a:hover {
color: #000;
text-decoration: none;
}
.custom-modal-header {
background: #b0d4e3; /* Old browsers */
background: -moz-linear-gradient(top, #b0d4e3 0%, #88bacf 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #b0d4e3 0%,#88bacf 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #b0d4e3 0%,#88bacf 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b0d4e3', endColorstr='#88bacf',GradientType=0 ); /* IE6-9 */
border-radius: 15px 15px 0px 0px;
color: white;
}
.custom-modal-footer {
background: #b0d4e3; /* Old browsers */
background: -moz-linear-gradient(top, #b0d4e3 0%, #88bacf 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #b0d4e3 0%,#88bacf 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #b0d4e3 0%,#88bacf 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b0d4e3', endColorstr='#88bacf',GradientType=0 ); /* IE6-9 */
border-radius: 0px 0px 15px 15px;
color: white;
}
.custom-modal-confirm-btn {
background-color: #98c4d7;
color: white;
}
.custom-modal-confirm-btn:hover {
background-color: #000000;
color: white;
}
.custom-modal-cancel-btn {
font-weight: bold;
}
.custom-modal-cancel-btn:hover {
background-color: #6099ca;
color: white;
font-weight: bold;
}
.chkChoice label {
margin-right: 20px;
margin-top: 15px;
margin-bottom: 15px;
margin-left: 5px;
color: #142658;
border-color: #142658;
border-radius: 50px;
}
.chkChoice input {
padding-left: 20px;
margin-left: 20px;
}

Please try using base path:
<link rel="stylesheet" type="text/css" href="<%= HttpContext.Current.Request.ApplicationPath %>/CSS/customStyles.css" runat="server" />

I tried creating a new css file on the same folder and posting the code in there and it worked. I have more code on other CSS file and i checked several times everything is well formatted and I'm still trying to figure out what causes the code to not be read, so as for now the solution is just place the code in a different empty css file

I have the same issue and looks like the only way is to set an "absolute" path in the scope of the project.
If project looks like this:
CSS will not load by path:
<link rel="stylesheet" type="text/css" href="BenchmarsStyles.css">
It works only:
<link rel="stylesheet" type="text/css" href="/ModelPortfolio/UserControls/BenchmarsStyles.css">
Means, it should include all directories from the root of the project.
I hope it helps.

Related

how to make dropdown menu select the option you clicked on last time

as I said in the title I am trying to make my dropdown menu select the last option i clicked on for example:https://www.youtube.com/user/PewDiePie/videos?view=0&sort=dd&flow=grid
in some youtube channels if you select videos and click on SORT BY then choose any option then if you click on sort by again you will see the last option you clicked is selected
(css is internal) this is my code:
html:
<div style="display: inline-block; text-align: right; width: 89%"> <div tabindex="0" class="menu">
<div class="menu-dropdown">
Most Popular
Newest
Oldest
</div>
</div>
</div>
css:
<style>
/* style for the css menu dropdown container */
.menu {
position:relative;
display:inline-block;
z-index:2; padding:0;
margin:0;
outline:0;
text-align:left;
}
/* style for the button */
.menu:before {
content: "\2630 \a0 Menu";
color:white;
padding: 5px 10px;
border: 1px solid #555;
border-radius:3px;
background: #96305e;
background: -moz-linear-gradient(top, #96305e 0%, #822956 10%, #822956 90%, #751749 100%);
background: -webkit-linear-gradient(top, #96305e 0%,#822956 10%,#822956 90%,#751749 100%);
background: linear-gradient(to bottom, #96305e 0%,#822956 10%,#822956 90%,#751749 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#96305e',
endColorstr='#751749',GradientType=0 );
}
.menu:focus { pointer-events:none; }
/* If :focus detected the dropdown menu is displayed by making it visible */
.menu:focus .menu-dropdown { opacity:1; visibility:visible; }
/* style for the dropdown box */
.menu-dropdown {
background-color: #364656;
width: auto;
margin:3px 0 0 0;
padding: 10px;
border-radius:3px;
border:1px black solid;
border-radius:3px;
pointer-events: auto;
position: absolute;
z-index: 1;
opacity: 0;
visibility: hidden;
transition: visibility 1s;
background: #1f8bd3;
background: -moz-linear-gradient(top, #1f8bd3 0%, #1b7aba 10%, #1b7aba 90%, #1b61b7 100%);
background: -webkit-linear-gradient(top, #1f8bd3 0%,#1b7aba 10%,#1b7aba 90%,#1b61b7 100%);
background: linear-gradient(to bottom, #1f8bd3 0%,#1b7aba 10%,#1b7aba 90%,#1b61b7 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1f8bd3',
endColorstr='#1b61b7',GradientType=0 );
}
/* style the links in the dropdown */
.menu-dropdown a {
background:transparent;
border:none;
outline:0;
display:block;
color:white;
text-decoration:none;
width:160px;
padding:5px;
}
</style>
EDIT
Full Html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<div id="header">
<div class="container">
Home
<ul id="header-nav">
<li><a href="about.html" >About</a></li>
<li><a href="contact.html" >Contact</a></li>
<li>Download Links</li>
</ul>
</div>
</div>
<body>
<div style="display: inline-block; text-align: right; width: 89%">
<div tabindex="0" class="menu">
<div class="menu-dropdown">
Most Popular
Newest
Oldest
</div>
</div>
</div>
<style>
/* style for the css menu dropdown container */
.menu {
position:relative;
display:inline-block;
z-index:2; padding:0;
margin:0;
outline:0;
text-align:left;
}
/* style for the button */
.menu:before {
content: "\2630 \a0 Menu";
color:white;
padding: 5px 10px;
border: 1px solid #555;
border-radius:3px;
background: #96305e;
background: -moz-linear-gradient(top, #96305e 0%, #822956 10%, #822956
90%, #751749 100%);
background: -webkit-linear-gradient(top, #96305e 0%,#822956 10%,#822956
90%,#751749 100%);
background: linear-gradient(to bottom, #96305e 0%,#822956 10%,#822956
90%,#751749 100%);
filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#96305e', endColorstr='#751749',GradientType=0 );
}
.menu:focus { pointer-events:none; }
/* If :focus detected the dropdown menu is displayed by making it visible
*/
.menu:focus .menu-dropdown { opacity:1; visibility:visible; }
/* style for the dropdown box */
.menu-dropdown {
background-color: #364656;
width: auto;
margin:3px 0 0 0;
padding: 10px;
border-radius:3px;
border:1px black solid;
border-radius:3px;
pointer-events: auto;
position: absolute;
z-index: 1;
opacity: 0;
visibility: hidden;
transition: visibility 1s;
background: #1f8bd3;
background: -moz-linear-gradient(top, #1f8bd3 0%, #1b7aba 10%, #1b7aba
90%, #1b61b7 100%);
background: -webkit-linear-gradient(top, #1f8bd3 0%,#1b7aba 10%,#1b7aba
90%,#1b61b7 100%);
background: linear-gradient(to bottom, #1f8bd3 0%,#1b7aba 10%,#1b7aba
90%,#1b61b7 100%);
filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#1f8bd3', endColorstr='#1b61b7',GradientType=0 );
}
/* style the links in the dropdown */
.menu-dropdown a {
background:transparent;
border:none;
outline:0;
display:block;
color:white;
text-decoration:none;
width:160px;
padding:5px;
}
</style>
</body>
<center>
<h1>Games</h1>
<h3>
<a href="https://direct-link.net/165397/script"target="_blank" >Roblox
autorob script</a><br>
8 ball pool hack no root<br>
</h3>
</center>
<div id="footer">
<div class="container">
<div class="column">
<h4>My Links</h4>
<p>
<a href="https://web.facebook.com/YousefRaedXD"
target="_blank">Facebook</a><br>
<a href="https://www.youtube.com/channel/UC6x7kvBibYzem6i59UMc3kw"
target="_blank">Youtube</a>
</p>
</div>
<div class="column">
<h4>My Story</h4>
<p>Hi there! I study in middle school and i wish to be a web programmer
:3</p>
</div>
</div>
</div>
</html>
Full css (external):
#header-nav li {
display: inline;
padding-left: 20px;
}
#header-nav {
display: block;
float:right;
margin-top:0;
}
#header {
background-color: #1abc9c;
height: 150px;
line-height: 150px;
}
container {
max-width:1000px;
margin:0 auto;
}
#header-title {
display: block;
float: left;
font-size: 20px;
font-weight: bold;
}
#header a {
color: white;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.1em;
}
#header a:hover {
color: #222;
}
#footer {
background-color: #2f2f2f;
padding: 50px 0;
}
.column {
min-width: 300px
display: inline-block;
vertical-align: top;
}
#footer h4 {
color: white;
text-transform: uppercase;
letter-spacing: 0.1em
}
#footer p {
color:white;
}
a {
color: #1abc9c;
text-decoration: none;
}
a:hover {
color: #F6A623;
}
.post {
max-width: 800px;
margin: 0 auto;
padding: 60px 0;
}
.post-author img {
width: 50px;
height: 50px;
vertical-align: middle;
}
.post-author span {
margin-left: 16px;
}
.post-date {
color: D2D2D2;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.1em;
}
h1, h2, h3, h4 {
color: #333;
}
p {
line-height: 1.5;
}
#import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);
body {
margin: 0;
color: #555;
font-family: 'Montserrat', sans-serif;
}
.post, .about {
max-width: 800px;
margin: 0 auto;
padding: 60px 0;
}
Did you try to use a form in your menu and send by post or get (No matter which one) the last one you picked so, you'll be able to display it with a little bit of php.
<?php
echo"<button>{$_GET['lastOne']}</button>";
?>
!!! Only If I correctly understood the question !!!
What I understood is you want to add, like a history in your dropdown menu and the last button would be a link to the last one you visited
EDIT
Here is the code I told you I would make for you, prob not the best way to do it, but it's working
<div style="display: inline-block; text-align: right; width: 89%">
<div tabindex="0" class="menu">
<div class="menu-dropdown">
Most Popular
Newest
Oldest
<?php
if (isset($_GET['lastButtonClicked']))
{
$lastButtonClicked = $_GET['lastButtonClicked'];
echo"<a href='$lastButtonClicked'>Last button clicked</a>";
}
?>
</div>
</div>
</div>

My Website formatting isn't spacing out even when I declare it

The Footer should be at the bottom but it's not formatting correctly. Here is the CSS Code . I'm trying to format it by having the nav bar then main then footer. But I try to change the padding/margin for whether that be .container or .footer and it doesn't have any effect on it. I'm relatively new on creating websites from scratch any tips are helpful.
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/main.css">
<title> ~ Portfolio</title>
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">
</head>
<body>
<header>
<div class="container">
<img src="">
<nav>
<ul>
<li>Home</li>
<li>Skills</li>
<li>Experience</li>
<li>Contact</li>
</ul>
</nav>
</div>
<footer class="footer">
<font color="white" face="Roboto">Johnny Handcock</font>
</footer>
</header>
</body>
</html>
nav {
word-spacing: 15px;
float: right;
padding-right: 20px;
/* normal, hidden state */
}
a {
text-decoration:none;
color: #ffff;
font-size: 20px;
font-family: 'Roboto', sans-serif;
font-weight: 600;
}
a:hover {
/* when parent is hovered */
color:black;
opacity: 0.6;
outline-style: solid;
outline-color: radial-gradient(circle, rgba(128,0,255,1) 0%, rgba(128,0,255,0.9612045501794468) 67%, rgba(102,34,193,1) 84%);
border-radius: 10px;
}
ul > li {
display: inline-block;
/* You can also add some margins here to make it look prettier */
zoom:1;
*display:inline;
/* this fix is needed for IE7- */
}
body {
/* Previous Config background: rgb(48,6,102);
background: linear-gradient(117deg, rgba(48,6,102,1) 0%, rgba(110,5,162,0.9612045501794468) 56%, rgba(109,32,210,1) 77%);*/
background: rgb(128,0,255);
background: radial-gradient(circle, rgba(128,0,255,1) 0%, rgba(128,0,255,0.9612045501794468) 67%, rgba(102,34,193,1) 84%);
/* Top, Right, Bottom, Left
margin: 400px 300px 200px 800px */
}
.footer {
background-color: #111111;
color: #eeeeee;
border-top: 1px solid red;
height: 60px; /* footer height */
padding-top: 20px;
display: block;
margin-top: 20px; /* space between content and footer */
box-sizing: border-box;
position: relative;
width: 100%;
}
You have the footer inside the header, which doesn't seem right, but I'm not sure if that's a mistake or not. You are dealing with the "sticky footer" problem (you can google it for solutions). One easy solution is to use flexbox. The following code will work:
body{
margin: 0;
}
html,body,header{
height:100%;
}
header {
display: flex;
flex-direction: column;
}
footer{
margin-top:auto;
}
You basically make the div containing the footer display:flex and flex-direction:column, then give the footer a margin-top: auto to push it down. You also want to give html, body, and the flex container a height of 100%:
nav {
word-spacing: 15px;
float: right;
padding-right: 20px;
/* normal, hidden state */
}
a {
text-decoration: none;
color: #ffff;
font-size: 20px;
font-family: 'Roboto', sans-serif;
font-weight: 600;
}
a:hover {
/* when parent is hovered */
color: black;
opacity: 0.6;
outline-style: solid;
outline-color: radial-gradient(circle, rgba(128, 0, 255, 1) 0%, rgba(128, 0, 255, 0.9612045501794468) 67%, rgba(102, 34, 193, 1) 84%);
border-radius: 10px;
}
ul>li {
display: inline-block;
/* You can also add some margins here to make it look prettier */
zoom: 1;
*display: inline;
/* this fix is needed for IE7- */
}
body {
/* Previous Config background: rgb(48,6,102);
background: linear-gradient(117deg, rgba(48,6,102,1) 0%, rgba(110,5,162,0.9612045501794468) 56%, rgba(109,32,210,1) 77%);*/
background: rgb(128, 0, 255);
background: radial-gradient(circle, rgba(128, 0, 255, 1) 0%, rgba(128, 0, 255, 0.9612045501794468) 67%, rgba(102, 34, 193, 1) 84%);
/* Top, Right, Bottom, Left
margin: 400px 300px 200px 800px */
}
.footer {
background-color: #111111;
color: #eeeeee;
border-top: 1px solid red;
height: 60px;
/* footer height */
padding-top: 20px;
display: block;
/* space between content and footer */
box-sizing: border-box;
position: relative;
width: 100%;
}
body{
margin: 0;
}
html,body,header{
height:100%;
}
header {
display: flex;
flex-direction: column;
}
footer{
margin-top:auto;
}
<header>
<div class="container">
<img src="">
<nav>
<ul>
<li>Home</li>
<li>Skills</li>
<li>Experience</li>
<li>Contact</li>
</ul>
</nav>
</div>
<footer class="footer">
<font color="white" face="Roboto">Johnny Handcock</font>
</footer>
</header>
nav {
word-spacing: 15px;
float: right;
padding-right: 20px;
/* normal, hidden state */
}
a {
text-decoration:none;
color: #ffff;
font-size: 20px;
font-family: 'Roboto', sans-serif;
font-weight: 600;
}
a:hover {
/* when parent is hovered */
color:black;
opacity: 0.6;
outline-style: solid;
outline-color: radial-gradient(circle, rgba(128,0,255,1) 0%, rgba(128,0,255,0.9612045501794468) 67%, rgba(102,34,193,1) 84%);
border-radius: 10px;
}
ul > li {
display: inline-block;
/* You can also add some margins here to make it look prettier */
zoom:1;
*display:inline;
/* this fix is needed for IE7- */
}
body {
/* Previous Config background: rgb(48,6,102);
background: linear-gradient(117deg, rgba(48,6,102,1) 0%, rgba(110,5,162,0.9612045501794468) 56%, rgba(109,32,210,1) 77%);*/
background: rgb(128,0,255);
background: radial-gradient(circle, rgba(128,0,255,1) 0%, rgba(128,0,255,0.9612045501794468) 67%, rgba(102,34,193,1) 84%);
/* Top, Right, Bottom, Left
margin: 400px 300px 200px 800px */
margin:0;
}
.footer {
background-color: #111111;
color: #eeeeee;
border-top: 1px solid red;
height: 60px; /* footer height */
padding-top: 20px;
padding-left:20px;
display: block;
margin-top: 20px; /* space between content and footer */
box-sizing: border-box;
width: 100vw;
position:absolute;
bottom:0;
}
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/main.css">
<title> ~ Portfolio</title>
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">
</head>
<body>
<header>
<div class="container">
<img src="">
<nav>
<ul>
<li>Home</li>
<li>Skills</li>
<li>Experience</li>
<li>Contact</li>
</ul>
</nav>
</div>
<footer class="footer">
<font color="white" face="Roboto">Johnny Handcock</font>
</footer>
</header>
</body>
</html>

when device is arabic language then input field is showing arabic for type="number"

we are developing hybrid mobile application using DOJO 1.10.3
I have a input fields with type number that fields are prepulated and i applied english times new roman font to the input field. When the device language is set to Arabic, prepopulated input field is showing Arabic numbers but i want to show english numbers only.
that prepopulated inputfields i am trying to editing in that time it is showing english numbers.
don't want it to translate it to Arabic Numerals. How can I make this?
problem screen shot
var jsonFiled={'firstField':"1kjj678",'secondField':58815}
document.getElementById('1stField').value=jsonFiled.firstField;
document.getElementById('2ndField').value=jsonFiled.secondField;
#font-face {
font-family: Times New Roman;
src: url(font-face/Times_New_Roman_Normal.ttf);
}
.ui-page {
font-family: Times New Roman !important;
}
.ui-header{
height: 42px!important;
border-top: 2px solid rgba(106, 106, 106, 1.0);
border-bottom: 2px solid rgba(106, 106, 106, 1.0);
display: table;
vertical-align: top !important;
top: 0px !important;
width: 100%;
top: 0px !important;
right:0px;
left:0px;
text-align: center;
z-index: 1000;
position: fixed !important;
background: rgba(160, 32, 64, 1.0);
font-family: Times New Roman !important;
}
.ui-content {
border: none !important;
margin: 0px !important;
position: absolute !important;
bottom:0px !important;
left: 0px !important;
right:0px !important ;
top:20px !important;
padding:0px 15px 0px 15px !important;
font-family: Times New Roman !important;
}
.ui-footer{
background: rgba(160, 32, 64, 1.0);
height: 44px;
border-top: 2px solid rgba(106, 106, 106, 1.0);
border-bottom: 2px solid rgba(106, 106, 106, 1.0);
vertical-align: bottom !important;
bottom: 0px !important;
width: 100%;
position: fixed;
font-family: Times New Roman !important;
}
input {
margin: 0px auto 0px auto;
font-size: 12px;
font-weight: bold;
text-indent: 10px;
color: rgba(23, 82, 117, 1.0);
display: block;
width: 85%;
height: 34px;
border: 1px solid rgba(204, 204, 204, 1.0);
border-radius: 0px;
background-color: white !important;
outline: none !important;
font-family: Times New Roman !important;
}
button {
font-weight: bold;
margin: 18px auto 0px auto;
display: block;
width: 85.5%;
border: 1px solid rgb(204, 204, 204);
height: 35px;
font-size: 14px;
line-height: 2.4;
border-radius: 7px;
-webkit-text-fill-color: rgba(160, 32, 64, 1.0);
background: #fceabb;
background: -moz-linear-gradient(top, #fceabb 0%, #fccd4d 50%, #f8b500 51%, #fbdf93
100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, #fceabb 0%, #fccd4d 50%, #f8b500 51%,
#fbdf93 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #fceabb 0%, #fccd4d 50%, #f8b500 51%, #fbdf93
100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb',
endColorstr='#fbdf93', GradientType=0); /* IE6-9 */
font-family: Times New Roman !important;
}
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>errwer</title>
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no,target-densityDpi=device-dp">
<meta name="apple-mobile-web-app-capable" content="yes">
<!--
<link rel="shortcut icon" href="images/favicon.png">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
-->
<link rel="stylesheet" href="css/main.css">
<script>window.$ = window.jQuery = WLJQ;</script>
<script type="text/javascript" src="dojox/mobile/deviceTheme.js"></script>
<script type="text/javascript" data-dojo-config="isDebug: false, async: true, parseOnLoad: true, mblHideAddressBar: false" src="dojo/dojo.js"></script>
</head>
<body style="display: none;" lang="en">
<div data-dojo-type="dojox.mobile.View" id="view1"
data-dojo-props="selected:false" class="ui-page">
<div data-dojo-type="dojox.mobile.ScrollableView" id="view0" data-dojo-props="selected:true">
<div class="ui-header" data-dojo-type="dojox.mobile.Heading"
data-dojo-props="label:'Header',fixed: 'top'" data-position="fixed" data-tap-toggle="false" data-hide-during-focus="false">
</div>
<div class="ui-content" data-dojo-type="dojox.mobile.Container">
<input data-dojo-type="dojox.mobile.TextBox" id="1stField" style="font-family:Times New Roman!important;">
<input data-dojo-type="dojox.mobile.TextBox" id="2ndField" type="number" style="font-family:Times New Roman!important;">
<button data-dojo-type="dojox.mobile.Button">SUBMIT</button>
</div>
<div data-dojo-type="dojox.mobile.Heading" class="ui-footer"
data-dojo-props="label:'Footer',fixed: 'bottom'"></div>
</div>
</div>
<script src="js/initOptions.js"></script>
<script src="js/main.js"></script>
<script src="js/messages.js"></script>
</body>
</html>
Is this work? set attribute lang at body element
<body lang="en">

The Html ordered List is displaying in next line

I have used html and css code below My aim is to display master,image and list in single line.but list is displaying in next line so pls help me to rectify the issue.
HTML
<h2> Master <img src="<?php echo base_url('img/courses_title.jpg'); ?>" HEIGHT="55" WIDTH="55" BORDER="0" /><div align="center"> <ul class="Data"><li> 1.Course code and name is created </li></ul></h2>
CSS
<style type="text/css">
.pg-normal {
color: green;
font-weight: normal;
text-decoration: none;
cursor: pointer;
background: #e3e3e3;
border: 1px solid #cac9c9;
padding: 4px 7px;
}
.pg-selected {
color: black;
font-weight: bold;
text-decoration: underline;
cursor: pointer;
}
.Data {
width:20%;
margin: 10px;
-moz-border-radius : 10px; /* Firefox */
-webkit-border-radius : 10px; /* Safari & Chrome */
-khtml-border-radius : 10px; /* Linux browsers */
border-radius : 10px; /* CSS3 compatible browsers */
border-style: solid;
border-width: 1px;
border-color: #cccccc;
padding: 0px;
border-spacing: 0px;
overflow: hidden;
background: #eeeeee; /* Old browsers */
background: -moz-linear-gradient(top, #eeeeee 0%, #cccccc 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* IE10+ */
background: linear-gradient(to bottom, #eeeeee 0%,#cccccc 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
}
</style>
Please take a look at this JsFiddle.
I have added an example based off your above HTML, here is the HTML code:
<h2>Master</h2>
<img src="/path/" alt="example" />
<ul>
<li>1. Course code and name is created</li>
</ul>
CSS:
img, ul {
float: left;
}
ul {
margin: 0;
}
It's displaying in the next line because it is a block element.
Most HTML elements are defined as block level elements or as inline
elements.
Block level elements normally start (and end) with a new line when
displayed in a browser.
Inline elements are normally displayed without starting a new line.
That is the main concept, as to why your li appears on separate lines.
if you want your li element to appear on the same line, you'll have to implement it in the inline form, like so:
<li style="display:inline;">content</li>
if you want all your lis to be inline do this:
<style>
li{
display:inline;
}
<style>
just add it to the head section of your page.
try this one
http://jsfiddle.net/nY6eu/1/
add this to your code
css file:
.ul{
list-style:none;
}
.ul li{
display:inline-block;
}
html file:
<ul class="ul"><li><h2> Master </h2></li>
<li><img src="http://img.talkandroid.com/uploads/2013/03/wpid-photo-jan-14-2013-1115-am.jpg" HEIGHT="55" WIDTH="55" BORDER="0" /></li> <li class="Data"> 1.Course code and name is created </li>
</ul>

CSS button class breaking links

I'm using CSS3 buttons for a website I'm working on. However it would appear that the CSS controlling these buttons is breaking the links it styles. If anyone could point out where I am going wrong that would be greatly appreciated.
CSS controlling buttons:
.button {
display: inline-block;
zoom: 1; /* zoom and *display = ie7 hack for display:inline-block */
*display: inline;
vertical-align: baseline;
margin: 0 2px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
font: 14px/100% Arial, Helvetica, sans-serif;
padding:5px 15px;
text-shadow: 0 1px 1px rgba(0,0,0,.3);
-webkit-border-radius: .5em;
-moz-border-radius: .5em;
border-radius: .5em;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.button:hover {
text-decoration: none;
}
.button:active {
position: relative;
top: 1px;
}
.blue {
color: #d9eef7;
background: #0095cd;
background: -webkit-gradient(linear, left top, left bottom, from(#009DD1), to(#009DD1));
background: -moz-linear-gradient(top, #009DD1, #009DD1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00adee', endColorstr='#0078a5');
}
.blue:hover {
background: #007ead;
background: -webkit-gradient(linear, left top, left bottom, from(#0095cc), to(#00678e));
background: -moz-linear-gradient(top, #0095cc, #00678e);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0095cc', endColorstr='#00678e');
}
.blue:active {
color: #FFFFFF;
background: -webkit-gradient(linear, left top, left bottom, from(#0078a5), to(#00adee));
background: -moz-linear-gradient(top, #0078a5, #00adee);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0078a5', endColorstr='#00adee');
}
And the offending links:
<div class="nav">
<a href='http://www.twantrum.com/mild.html' target="_top" class='button blue'>Mild</a>
<a href='http://www.twantrum.com/restrained.html' target="_top" class='button blue'>Restrained</a>
<a href='http://www.twantrum.com/angry.html' target="_top" class='button blue'>Angry</a>
<a href='http://www.twantrum.com/mel-gibson.html' target="_top" class='button blue'>Mel Gibson</a>
</div>
There is no error in the markup you posted.
Looking at your page itself though, i noticed this section, which produces the error:
<script type="text/javascript">
$(document).ready(function(){
$('.button').click(function(){ return false; });
});
</script>
Why this does not work is answered here: What's the effect of adding 'return false' to a click event listener?
Hope it helps.