Help - Search - Members - Calendar
Full Version: Html Query
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
underdeath
Im a real noob at HTML lol. sohow do i make a bac kground for my website page and have text and everything else over the top of it?
EMOruffino
so im guessing you want a background picture?

This is the most basic of basic code here:
CODE
<body background="image_url_here.jpg">


Tho you should use a css.....

ALSO to put text in, just put the text within the body tags. need more help?
underdeath
thanks alot! but i have a new query. im using dreamweaver and i downloaded a template and i can see how theres a like an index on the leffthand side of the template to go to other pages on my website. can someone please explain how to when someone clicks on those links to go to another page on my website. it would be helpful if you told me how to do it using dreamweaver! thanks alot guys.
MrTouz
Your First query :

I personaly think its not really good to use <body> to put your bg in it :/ why ? because its always better to use a style.css instead ! youll see once you coded your site style.css will be cool.

So create a new .css document... well go to notepade and than save as .css mostlikely style.css

once done put this into it :

CODE
body {
    background:#FFFFFF url(images/backgroundimage.gif) repeat;
}

(modify the image name and filetype)

ofcourse other atributes can be added... such as color, paddings.. margin..

Once saved smile.gif put this style.css next to your HTML pages smile.gif and inside ALL your html pages between the <head> </head> tag add this line of code :

CODE
<link rel="stylesheet" href="style.css" type="text/css" />


Your second query :

this is a link code :

CODE
<a href="http://www.google.com">Google Web Site</a>


so when you clic on this "Google Web Site it sends you to google.com. Simple ?
well you can than if you want add a target...
so lets say you want to have a link to open in a new window you just add the target="_blank" so :

CODE
<a href="http://www.google.com" target="_blank">Google Web Site</a>


you can put a iframe as a target.. as target="blabla" so lets say you had a :

CODE
<iframe name="blabla" width="400" height="400"></iframe>


inside a corner of your website... well once you clic on Google Web Site it will traget your google page inside the 400x400 iframe on the corner of your site smile.gif

you can add many things with a href smile.gif

HOPE IT HELPS smile.gif
Earpy
Hello,

Although both of your questions have been answered very well by MrTouz and EMOruffino, I thought this post would help. Some very good tutorials that will get you started in HTML can be found at www.W3schools.com. That is where I started out, and even today when I get a little brain dead, I still refer to that site smile.gif Check it out sometime!

~ Earpy ~

underdeath
thankyou you very much for your help guys much appreciated!
EMOruffino
QUOTE(underdeath @ Oct 22 2007, 05:14 PM) *
thankyou you very much for your help guys much appreciated!

anytime, and yes the CSS is the best as i did metion in my first post laugh.gif
MrTouz
www.W3schools.com

very good place smile.gif i never went to the site dirrectly i just asked my best friend... GOOGLE for a code lets say

html coding link

and it alwyas give me a w3schools link smile.gif very nice site ! definitly suggested
IamShipon1988
W3schools.com is a really good site, I would also recommend checking up on HTMLDog at http://htmldog.com/
They have very great references about html basics and advanced material, in addition to css.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.