Solved

HTML code help

Posted on 2013-12-13
4
512 Views
Last Modified: 2013-12-13
Trying to place text in lower right hand corner of my page.


Have to links Contact Us and Guest Book
Want to make them buttons and place them in lower right corner

The color not working either

New to this thanks


<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

		<title>Tom's Music Site</title>

		<meta name="viewport" content="width=device-width; initial-scale=1.0" />

		<style type="text/css">
			body { background:url(images/ilm.jpg) repeat-x; } 
		</style>
	</head>

	<body>
                <font color=#DC143C>
		<h1>This site is down for maintenance</h1>

                <form>
                <input type="button" value="Show All MP3 Songs" onClick="window.location.href='music.asp'">
                </form> 

                <p><!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%Y" startspan -->12/12/2013<!--webbot bot="Timestamp" endspan i-checksum="12626" -->
                </p>
               <p bottom right>             
                <font color=#DC143C> 
                <a href="mailto:webmaster@mydomain.com?subject=User requesting info">
                Contact US</a></p>
                <p bottom right> 
                <font color=#DC143C>  
                <a href="GuestBook.htm">Sign Our GuestBook</a></p>                              
        </body>

</html>

Open in new window

0
Comment
Question by:Thomas Grassi
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:N R
ID: 39717491
Here you go.  You needed a div, not a <p>.  Also you needed to set the color on the a href the way you tried to set the font color was incorrect.
<style>
body { background:url(images/ilm.jpg) repeat-x; } 
a{color:#DC143C;}
#bottomright{float:right;}
</style>
		<title>Tom's Music Site</title>



	<body>
                <font color=#DC143C>
		<h1>This site is down for maintenance</h1>

                <form>
                <input type="button" value="Show All MP3 Songs" onClick="window.location.href='music.asp'">
                </form> 

                <p><!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%Y" startspan -->12/12/2013<!--webbot bot="Timestamp" endspan i-checksum="12626" -->
                </p>
                <div id="bottomright">             
                    <a href="mailto:webmaster@mydomain.com?subject=User requesting info">
                    Contact US</a> | <a href="GuestBook.htm">Sign Our GuestBook</a>
                </div>

Open in new window


Here is example of it working:
http://jsfiddle.net/gallitin/8uzbK/
0
 
LVL 23

Author Comment

by:Thomas Grassi
ID: 39717556
Thanks for the fast reply.

I get the same results as you now but they are not on the bottom of the page the are just below the date field but on the right side of the page.

Would like them at the bottom.
0
 
LVL 11

Accepted Solution

by:
N R earned 500 total points
ID: 39717565
Updated:
http://jsfiddle.net/gallitin/8uzbK/1/

<style>
body { background:url(images/ilm.jpg) repeat-x; } 
a{color:#DC143C;float:right;margin-right:20px;}
#bottomright{float:right;bottom:0;position:fixed;width:100%;}
</style>
		<title>Tom's Music Site</title>



	<body>
                <font color=#DC143C>
		<h1>This site is down for maintenance</h1>

                <form>
                <input type="button" value="Show All MP3 Songs" onClick="window.location.href='music.asp'">
                </form> 

                <p><!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%Y" startspan -->12/12/2013<!--webbot bot="Timestamp" endspan i-checksum="12626" -->
                </p>
                <div id="bottomright">             
                    <a href="mailto:webmaster@mydomain.com?subject=User requesting info">
                    Contact US</a><a href="GuestBook.htm">Sign Our GuestBook</a>
                </div>

Open in new window

0
 
LVL 23

Author Closing Comment

by:Thomas Grassi
ID: 39717587
Thanks so much
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS Scroll Issue 3 85
CSS change width browser switches to mobile view 2 49
Alignment is not working correctly. 8 32
compact pure CSS Read More Toggle 4 21
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now