~Dave
Mar 3 2007, 03:24 AM
biscuitrat
Mar 3 2007, 03:49 AM
I'm going to introduce you to something called CSS. In a basic HTML page, find the following tags: CODE [b]<head> </head>[/b] In between them, write the following: CODE <style type="text/css"> body { background: #000 url(thelocationofyourfile) repeat-y; } Now, your entire body will have this background image, and it will repeat down the y-axis...that is, up and down. The color code in front of it makes sure that any part of the background that isn't covered by the background image will be that color...in this case, the color is black, because that is the predominant color of your page. This is a FAR better way to integrate a design. I strongly encourage you to start learning CSS; it'll change the way you look at things so much, and it's so easy 
Comment/Reply (w/o sign-up)
jlhaslip
Mar 3 2007, 04:05 AM
Like this? Cut and paste this code into a file and name it whatever.html, then open it in your browser. Easy as pie... CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> An XHTML 1.0 Strict template </title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="imagetoolbar" content="no" /> <meta http-equiv="content-style-type" content="text/css" /> <meta http-equiv="expires" content="Mon, 01 Jan 1995 00:01:01 CST" /> <meta http-equiv="keywords" content="keywords list here, comma seperated" />
<meta http-equiv="description" content="insert a description here." /> <meta http-equiv="reply-to" content="jlhaslip@yahoo.ca" /> <meta http-equiv="author" content="Jim Haslip" /> <meta http-equiv="reply-to" content="jlhaslip@yahoo.ca" /> <link rel="stylesheet" type="text/css" href="style_file_here.css" /> <style type="text/css"> /*<![CDATA[*/ * html { margin:0; padding:0;} html, body { height: 100%; } #wrapper { /* div you want to stretch */ min-height: 100%; } body { margin:0 auto; text-align:center; background-color: #000000; }
#wrapper { margin: 0 auto; width:100%; background-color: transparent; } #wrapper_top { margin: 0 auto; width:100%; height: 150px; background-color: transparent; border-bottom: 3px solid #000080; position:absolute; top: 0; left: 150px;} #wrapper_left{ margin: 0 auto; width:150px; height: 100%; background-color: transparent; border-right: 3px solid #000080; position:absolute; top:0; left: 0;}
#header { margin: 1em 0; text-align:center; background-color: transparent; } p { margin: 1em; padding:1em; text-align:left } #footer { margin: 1em auto; padding: 1em; text-align:center; } #footer a { margin: 1em auto; padding: .15em; } /*]]>*/ </style> <!--[if lte IE 6]> <style type="text/css"> #wrapper { height: 100%; } </style> <![endif]--> </head> <body> <div id="wrapper"> <div id="wrapper_top"> </div> <div id="wrapper_left"> </div> <div id="header">
</div><!-- header -->
<div id="footer">
</div><!-- footer --> </div><!-- wrapper --> </body> </html>
Comment/Reply (w/o sign-up)
biscuitrat
Mar 3 2007, 04:08 AM
Jhaslip has the right idea; go for a nice semantic XHTML layout (copy the code, don't worry about the terminology) and have a blast
Comment/Reply (w/o sign-up)
Graeme
Jun 29 2007, 05:48 PM
if you are trying to get that layout instead of using a background, try using a CSS Layout. CSS Layout help can be found on numerous websites, although I like using Lissa Explains.
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : background, html
- W3schools.com Is Down
Ask your CSS/HTML/PHP questions here... (8)
Html Code Question
(2) Hi all, I was wondering is there a way I could make a field in a form that will take you to the
address you enter in it? (in other words) Site: trap17.com (go) and clicking go takes you to
trap17. I will explain why. What I have done is set up a page with frames, I've got all my
most visited sites on the left, and I browse in the right, I want to make a frame up the top of the
browsing window that will be like the address bar, Just to retain this framed setup. (I will put a
google box in it too). Alot of you are probably wondering why, its for purely aesthetic....
Some Questions On Html
(10) I was just curious on how people here learned HTML or XML (assuming you did, which, judging by the
fact you are actually here on this board). How long did it take for you to learn the basics of HTML?
How proficient are you right now in HTML? Which resources did you use when you were learning HTML
(or are currently learning HTML?). How did you find learning HTML? Thanks.....
Help Making A Web Adress Bar Using Html/js
(9) Hey I need to make an adress bar basically you imput into the field press enter and your away but it
cant use php or any code that needs to be installed, its all part of a workaround for my school
interenet!....
Html Ascii Codes - A Complete List
downloadable php file (3) I was often frustrated at how, despite there being thousands of ASCII "special characters" such as
&8659; , websites that claimed to list them all only listed the first 256. To combat this issue, I
have created a table which lists the first 10,001 - from to &10000; I am sure there are many
more but it is simply not feasible to create a table with many more rows as viewing it would put
terrific strain on the browser.! You can download the file in two forms. One uses PHP to
dynamically create the table (1KB), the other has it ready-made in pure HTML format (437KB....
Html Div Help [resolved]
help with the divs in ipb (1) hey guys, as you may know, i have ipb 2.3.4 set up on my site. i am currently using the centura
skin and like it a lot. i have customised the header bar in terms of the logo, however also want a
slab of text linking to the forums home at the top of the banner. i have so far managed to achieve
this to work in firefox (see attached screenshot), however it just screws up in ie, opera and safari
(i think). the link is here here is the code, both html and css, of the ipb header, and i have
placed between stars the parts i have edited: CODE the css (only the edited....
Best Way To Protect Html Form Fields
Looking for suggestions on how to protect form fields during user inpu (3) My working example is here http://sonesay.trap17.com/application.php The form submits to itself
and stores what ever the user inputs into session variables. Thats all fine and I have validation
checks for it, I wanted to add more and I remember comming across a site where they would lock from
fields to prevent any changes if the information was already supplied and validated. I'm looking
to build something similar but cant seem to figure out how to get that same effect at this time.
Heres my program logic so far application.php includes('application_content.....
Html Application Form
(6) does anyone know how to make a form/application that when you submit the form with the submit but it
sends it in a email to you email address if anyone on here knows please please let me know thanks, i
want this so i can have members apply for a team on my football site and there information will come
back to me and i can accept or reject them for that job....
Login In Using Html
(12) I have looked around and I can't find any code to help me out. I want to make it so you can log
in to my site to get member featues. Could some one please help me....
Wanna Learn Html From Scratch
downloade an online tutorial,formatted my c: lost it forever,and FORGO (5) id prefer something i can download .....coz my internet connection is highly intermittant Moved
from the Java section to the HTML section. ....
Background Question
:) (12) ok I'm using a made picture in photoshop for my background so I can align the text just into
where i want it. now, I the image set up but it repeats itself, how would I set it so it
doesn't? Heres the page, www.gaming-alliance.net/main.html thanks!....
Help With Css/html Layout
Horizontal List Problems (5) I can't figure out why this horizontal list isnt working. Underneath my banner is supposed to
be a green gradient bar with a list of links in the center of the page. The links are all the way
to the left and are really small. The banner is also overlapping the list for some reason. This is
my current layout(don't worry, I'm not trying to advertise).
http://www.stormgaming.net/stormcreations/ This is my CSS file
http://www.stormgaming.net/stormcreations/storm.css Thanks in advance for any help.....
Help With Background Image
please? :) (6) Ok heres the scoop, i got a background that i made in paint for my website its just like 3 lines for
the nav bar, banner and other things ect. ect. now when i hosted it on a site and put in the This
is what it looks like in paint http://img.photobucket.com/albums/v614/Dj1.../background.jpg and
this is what it looks like when i put it into HTML
http://img.photobucket.com/albums/v614/Dj169211/Damn.jpg i dont want it tiled like that so is
there any way that i can change that? any ideas? :| Thanks in advance /smile.gif"
style="vertical-align:middle" emoid=":)" borde....
Having Html Troubles......
Please help! (1) I'm having troubles with the background colours on the HTML pages on my site
keri-j.trap17.com Basically, the colors are hex codes and i'm no HTML n00b, god no! But, I just
can't figure this one out! I have the background colour in the body tag (duh) " " on all my
pages but on some of them the background is white. This might be to do with some javascript i have
recently edited in each page or certain errors but whatever it is i can't figure it out! This
is my homepage with the correct background color This is my poetry page with the faulty colour c....
Wanting To Touch Up/learn My Html Again
(27) Ok, well recently i realized that i am not as skilled in HTML (such as building website layouts) as
i want to be, with tables etc... and so i was thinking about going through many many many many many
many sites and just touching up on my HTML and see if i can code my own website template before
starting to learn PHP because that is what i want to do. so, i am asking all of you experianced
people on trap17 what websites did you use to learn your HTML skills, yees i know i could go to
google and type in learn html or somthing along the lines of that, but i want to know wh....
Creating Link In Html - Help Me With This!
(5) edit: Neeeaavverrrminddd..... I was a total noob at php when i posted this and I needed help doing
something with bbcode in php and didn't really know what I was saying.. /blush.gif"
style="vertical-align:middle" emoid=":blush:" border="0" alt="blush.gif" /> Anyway topic
resolved.......
Html Question Concerning Pre Tag And Code Tag
(8) My question is, why would anyone use the CODE tag when you can use the PRE tag? 1. The PRE tag
recognises white space, the CODE tag does not. 2. The CODE tag requires that you escape some
chars, the PRE tag does not. I cannot see anything that the CODE tag achieves that is special apart
from sounding as though it is perfect for displaying code which IMO it is not. Thanks. ....
Do You Know Html?
Just Wondering, most of you would know. (65) Well I was just wondering, i know this polol might sound stupid, as this is a hosting site forum and
the chances are you do know HTML, but the other day i met 2 people who didt have a clue what HTML
was, and was just at the forum because they found this forum active. And also do you know any other
programming languages, just wondering. I myself know HTML, C++ kinda, and learing PHP. Talking about
Languages I know Tamil, English, Lote /tongue.gif' border='0' style='vertical-align:middle'
alt='tongue.gif' /> .....
Integrating One Html File Into Another
without embedding (31) Hey guys I'm overhauling my website and have decided instead of using frames I want to just
have a logo and buttons integrated into each HTML file, so you can just scroll down past it. I want
the logo at the very top, before any content. I was wondering if there is any way of doing it with
an HTML tag (i.e. not PHP or any other scripts) so the header just gets inserted right after the
opening tag. I'm thinking that possibly it uses the tag, but really I don't have much of
an idea. Thanks in advance for your suggestions. Peace out /smile.gif' border=....
Fixed Background Image
Just little reminder (10) Easy teahnic, post the following codes between and QUOTE body{background-image: url(
under.gif ); background-repeat:no-repeat; background-attachment : fixed; background-position:
10% 20% ;} --> For red colour, change it to your image's location. For green colour, it
is used to set horizontal and vertical position of background image. I hope it can help you.
/tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> ....
Html Templates
HTML Templates for website (4) Where do i get free HTML Templates to use in look and feel of website? Any link will be
helpfull....I know there are some free templates available but it is hard to find even by
gooooogling it. Please, share if you have any. Thank You.....
Background Resize
(6) Does anyone have the javascript for a background to resize? I want my background to resize to
1024x768 if the visitor has resolution 1024x768, to 800x600 if the resolution is 800x600 etc.
Greets, ExplosioN /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> ....
Html Editor
non WYSIWYG (22) What editor can I download and use that isn't a WYSIWYG(what-you-see-is-what-you-get) and is
free. Currently I use NotePad but I want something better.....
Html Cool Codes?
(7) hey guys..whats up..well i ws just wondering if you guys have any cool codes for myspace or
something..you know to design a page using html/css codes...see i tried googling around but all the
sites had the same thing..they dont have a unique one...i want like games in my page...like my
friend he had like tetris in his page..and i want a game// or anything like that to make my page
cool /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' />
anybody????plz...PEAcE!....
Background Fit Any Resolution
hmmm (9) Is it possible to do with html. I have found a few solutions but they dont seem to work. I know it
is possible in java. But anyone have the code for html? Would really appreciate it.....
Disable Scrollbars, Menubars Etc....
Javascript / Html code to disable them (7) hi, i would like to know how the scrollbars, menubars etc.. can be disabled. I hope someone can help
me with this. /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
/> Btw: can you tell me where the code should be inserted to? thanks! /cool.gif"
style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" />....
Css Or Html Tags
Which is better to use???? (24) Dear friends, I am new to web site designing. I am using NVU for creating my web
pages. It has a option in which we can select that the editor will use CSS or it will use html tags
for coding of the page. For example - If I want to make the text bold then if tag is used the code
will be QUOTE Your text and if the CSS is used the text will be QUOTE Your text .
Please suggest me which option I should choose to make my web page standard to modern HTML
standards. Thanks in advance.....
Colors in Html
everything about colors (9) Hey...I've had a few problems with choosin the color in html language. I found a good page wich
describes all you need to know.. http://bignosebird.com/colors.shtml Next thing you need and it
really is useful is a program that shows you the color code..you have it online here:
http://www.pagetutor.com/pagetutor/makapage/picker/ hope it helps ya....byeeeeee....
where did you learn html from?
(125) HI, i am intresting in knowing where you began learning html of what inspired you to start learning
html. which programs did you use or which progs dyu use?....
How To make Cool Inverted Table
neat little HTML trick Very Easy (7) This is a Very neat way to add a cool effect to your webpage! Its great for Holding Links......or
anything else you can find a use for it. CODE HtmlGoodies W3C Schools
Heres The same Code on a Page Take a Look:
http://www.geocities.com/xsilverboarderx/test.html Also here is My page that i am currently workin
on i used the same thing just switched colors and used CSS: Silver Design Of Course with this
code u can change things around for ex. like background, border width or color, and cellpadding
cellspacing for diffe....
Looking for background, html
|
Searching Video's for background, html
See Also,
|
advertisement
|
|