Html problems
Hey guys
i have a small problem.
in my school they don't teach html/php/css stuff like that.
so i'm asking you guys.
how do i put a imagine as a background in a html.
how to use the css,something like,to put a link on a image, that thing with the pixels..widh lenght..
how do i make the connection between index.html and the css file
thanks a lot


i have a small problem.
in my school they don't teach html/php/css stuff like that.
so i'm asking you guys.
how do i put a imagine as a background in a html.
how to use the css,something like,to put a link on a image, that thing with the pixels..widh lenght..
how do i make the connection between index.html and the css file
thanks a lot


Comments
-
Giggletronluv wrote: »Hey guys
i have a small problem.
in my school they don't teach html/php/css stuff like that.
so i'm asking you guys.
how do i put a imagine as a background in a html.
how to use the css,something like,to put a link on a image, that thing with the pixels..widh lenght..
how do i make the connection between index.html and the css file
thanks a lot
I'm going to assume you use your own folder and subfolders correctly so here it goes:
First, to connect your css to your html/php you need to have these lines in the <head> tags:
<link href = "css/whereever.css" rel = "stylesheet" type = "text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
also make sure you have this at the top before you html tags:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Putting an image as a background is easy, making it fit and look good is hard. The code I usually use to do it is under the 'body' style in my css. Use this code there:
body{
background-color: #000000; /* black */
background-image: url('location of file');
}
If you are putting it straight into your HTML then *I think* its just something like:
<table border = "0" background = "image location" >
To put a link on an image is not in css. You simply incorporate a picture as the 'text' for the link:
<a href = "http://www.blah.com"> <img src = "blah/images.jpg" alt = "meeeop" /> </a>
That pretty much should be it. -
Code me a hack?I'm going to assume you use your own folder and subfolders correctly so here it goes:
First, to connect your css to your html/php you need to have these lines in the <head> tags:
<link href = "css/whereever.css" rel = "stylesheet" type = "text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
also make sure you have this at the top before you html tags:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Putting an image as a background is easy, making it fit and look good is hard. The code I usually use to do it is under the 'body' style in my css. Use this code there:
body{
background-color: #000000; /* black */
background-image: url('location of file');
}
If you are putting it straight into your HTML then *I think* its just something like:
<table border = "0" background = "image location" >
To put a link on an image is not in css. You simply incorporate a picture as the 'text' for the link:
<a href = "http://www.blah.com"> <img src = "blah/images.jpg" alt = "meeeop" /> </a>
That pretty much should be it. -
I'm going to assume you use your own folder and subfolders correctly so here it goes:
First, to connect your css to your html/php you need to have these lines in the <head> tags:
<link href = "css/whereever.css" rel = "stylesheet" type = "text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
also make sure you have this at the top before you html tags:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Putting an image as a background is easy, making it fit and look good is hard. The code I usually use to do it is under the 'body' style in my css. Use this code there:
body{
background-color: #000000; /* black */
background-image: url('location of file');
}
If you are putting it straight into your HTML then *I think* its just something like:
<table border = "0" background = "image location" >
To put a link on an image is not in css. You simply incorporate a picture as the 'text' for the link:
<a href = "http://www.blah.com"> <img src = "blah/images.jpg" alt = "meeeop" /> </a>
That pretty much should be it.
thanx
i'm using a paid webhosting.
that thing with link on image i know it.but i want to add a link on the image,well the entire website is a background,and i want to add some link on some image parts.i will pm you with the background * can't post it here *xD
Categories
- All Categories
- Z8Games
- Off-Topic - Go To Game OT Forums
- 1 Z8 Forum Discussion & Suggestions
- 16 Z8Games Announcements
- Rules & Conduct
- 5.2K CrossFire
- 955 CrossFire Announcements
- 945 Previous Announcements
- 2 Previous Patch Notes
- 1.4K Community
- 122 Modes
- 602 Suggestions
- 85 Clan Discussion and Recruitment
- 274 CF Competitive Forum
- 19 CFCL
- 26 Looking for a Team?
- 705 CrossFire Support
- 52 Suggestion
- 116 Bugs
- 29 CrossFire Guides
- 166 Technical Issues
- 47 CrossFire Off Topic