HTML Page Jquery Code Position
4 posters
Page 1 of 1
HTML Page Jquery Code Position
Where do i put this code:
Into this one:
Thank you in advance
- Code:
<script type="text/javascript"src="http://m3rcs.forummotion.com/10000.js"></script>
Into this one:
- Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style> body { ...
Thank you in advance
Last edited by CatherinaAndrea on July 22nd 2012, 8:07 pm; edited 1 time in total
Re: HTML Page Jquery Code Position
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso8859-1"/>
<head>
<script type="text/javascript"src="http://m3rcs.forummotion.com/10000.js"></script>
</head>
<style> body { ...
First you need to add the head tags and then the script. Hope I helped !
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso8859-1"/>
<head>
<script type="text/javascript"src="http://m3rcs.forummotion.com/10000.js"></script>
</head>
<style> body { ...
First you need to add the head tags and then the script. Hope I helped !
DailyTeens- New Member
- Posts : 22
Reputation : 1
Language : Bosnian, Englsih
Re: HTML Page Jquery Code Position
Ok i got the Jquery code working on my HTML Page.
http://m3rcs.forummotion.com/h2-tac-home
Now i've been trying so many things but none work so i'm out of ideas. The button seems to stick to the top left. Is there any way of getting it to be aligned with the container or content.
this is the code:
http://m3rcs.forummotion.com/h2-tac-home
Now i've been trying so many things but none work so i'm out of ideas. The button seems to stick to the top left. Is there any way of getting it to be aligned with the container or content.
this is the code:
- Code:
/********************* Navigation ****************************/
ul#topnav {
float: left;
list-style: none;
font-size: 12px;
}
ul#topnav li{
float: left;
overflow: hidden; /*--Important - Masking out the hover state by default--*/
height:97px;
width: 80px;
}
ul#topnav a, ul#topnav span { /*--The and share the same properties since the will be a duplicate of the tag--*/
float: left;
text-decoration: none;
color: #fff;
background: url(http://i216.photobucket.com/albums/cc174/ToxiCure/Empty_3.jpg) repeat-x;
clear: both;
width: 80px;
height: 97px;
line-height: 120px; /*--Vertical alignment of text--*/
}
ul#topnav a{ /*--This is basically the hover state of navigation--*/
color: #fff;
background: url(http://i216.photobucket.com/albums/cc174/ToxiCure/Empty_3_Hover.jpg) repeat-x;
background-position: left bottom;
}
ul#topnav span{ /*--Default state of navigation--*/
background-position: left top;
}
Re: HTML Page Jquery Code Position
either aligned with the left side of the page content even when more buttons are added, or center of the page content.
Re: HTML Page Jquery Code Position
CSS Code:
HTML Code:
Can anyone help me align the button to the left of the page content or center?
http://m3rcs.forummotion.com/h2-tac-home
Thanks in advance
- Code:
/********************* Navigation ****************************/
ul#topnav {
float: left;
list-style: none;
font-size: 12px;
}
ul#topnav li{
float: left;
overflow: hidden; /*--Important - Masking out the hover state by default--*/
height:97px;
width: 80px;
}
ul#topnav a, ul#topnav span { /*--The and share the same properties since the will be a duplicate of the tag--*/
float: left;
text-decoration: none;
color: #fff;
background: url(http://i216.photobucket.com/albums/cc174/ToxiCure/Empty_3.jpg) repeat-x;
clear: both;
width: 80px;
height: 97px;
line-height: 120px; /*--Vertical alignment of text--*/
}
ul#topnav a{ /*--This is basically the hover state of navigation--*/
color: #fff;
background: url(http://i216.photobucket.com/albums/cc174/ToxiCure/Empty_3_Hover.jpg) repeat-x;
background-position: left bottom;
}
ul#topnav span{ /*--Default state of navigation--*/
background-position: left top;
}
HTML Code:
- Code:
<ul id="topnav">
<li><a href="http://m3rcs.forummotion.com"><center>Home</center></a></li>
</ul>
Can anyone help me align the button to the left of the page content or center?
http://m3rcs.forummotion.com/h2-tac-home
Thanks in advance
Re: HTML Page Jquery Code Position
Since the topic is marked as solved...
Topic Solved & Locked |
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Similar topics
» Why is Jquery not working on HTML Page
» Images position on a HTML page
» Code to add Chatbox on HTML page
» Issues with HTML into page code
» HTML Page code on one line.
» Images position on a HTML page
» Code to add Chatbox on HTML page
» Issues with HTML into page code
» HTML Page code on one line.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum