Jul 26, 2008

Background Question

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..
Pages: 1, 2

free web hosting

Background Question

~Dave
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!

Reply

nol
you gotta have a bigger size backround. Or you must do the whole thing in css, which I can't help with. But the easiest route is make your bacrkound image better.

Reply

~Dave
ya I'm thinking of just useing Dreamweaver because doing it myself in notepad++ is just too hard when I only know HTML so :/ but I thought I should try because my buddy is making me a login script // database with his because I get free server space so we just combine members into 1 forum. but I think I'm just gunna get dreamweaver or use frontpage for this :/ because it seems too hard :|

Reply

Saint_Michael
actually this is quite simple really just apply the following code to your images in CSS or style in your code and you are done

CODE
background-repeat:no-repeat;

Reply

~Dave
QUOTE(Saint_Michael @ Jun 12 2007, 06:10 PM) *
actually this is quite simple really just apply the following code to your images in CSS or style in your code and you are done

CODE
background-repeat:no-repeat;


I dont know CSS though :/

Reply

nol
im sure you can just do..

CODE
<style></style>


or something like that, because I know that works with some css. But I've never tried it. You can do it in html, but it SHOULDNT repeat if you do it correctly, using <DIV> tags. Otherwise IDK sorry :\

Reply

~Dave
ya like I said I'll just use Dreamweaver, seems to be better then doing it yourself anyway, takes 2 mins in dreamweaver verses 10 mins in writeing it :/

Reply

nol
if u slice using photoshop it takes less then a minute to code in html/css format. Its not bad at all actually, plus they give u the slices and coding, no edited needed, and it fills entire page, no stretch no nothing tongue.gif

Reply

Saint_Michael
well there are several sites that you can go to learn CSS

http://www.w3schools.com/
http://www.pixel2life.com/
http://www.alvit.de/handbook/

but a quick shortcut this how your image style would look like

CSS Version
CODE
#mainContainer
{
    background-image: url("img/content_main.png");
    background-repeat: no-repeat;
        width: 100%;
        height: 100%;
    }


You would apply that to every image you have that you don't want to repeat and then in order to display it in your html file would do something like this:

CODE
<div id="mainContainer"></div>


also to make sure it works you will have link your style sheet in between your <head> tags which w3school.com covers. Now to do it the other way your your image code will look something like this

CODE
<img src="yourimagehere.jpg" style="background-repeat: no-repeat;">


either method works, but using the CSS method is more efficient and your your html file will be more organized.

 

 

 


Reply

~Dave
thanks for the info, I did get it to work but I used Dreamweaver.

Reply

Latest Entries

Adcam
Yeah, this is helpful!

Reply

galexcd
Just a suggestion for the site, It would look better if the top banner that said gaming alliance was centered. I know that that was your intention, but I'm sure your one of those people who have an extremely small resolution such as 800x600 and the normal people would like to benefit from your site as well. dry.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Similar Topics

Keywords : background,

  1. Ok Background Help Please
    html (4)
  2. 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....
  3. Background Image Picture On A Website
    how do u make a pic a backround?? (3)
    ?email me if u know! Trap17 forum asks you to post contributes with substance. ....
  4. Usemap And Table Background Image Changing
    (5)
    I have a menu page that consists of links to other pages. The page has a background image of a
    globe. The globe is divided into seperate sections for each menu item. As a user hovers over each
    section I change the background image(The same globe with that section highlighted.) That is what I
    have so far except that they have to hover over a small anchor tag that I put in not the whole
    section. I want to change it so that they can actually hover over all of the section they are
    selecting. I found usemap online but haven't found any examples where it will actually ch....
  5. 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' /> ....
  6. Background Resize
    (4)
    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' /> ....
  7. Background Fit Any Resolution
    hmmm (6)
    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.....
  8. Background Not Big Enough
    (4)
    Hi: Ok, first off....moderaters, please move this topic to the appropriate category. I really
    couldn't find a spot to put this in...so I just picked one. Here is the page I have a question
    about: http://histology-world.com/articles/article9.htm The problem? Scroll down and you can
    see. My background image is not long enough. I have gone into my photo editor and readjusted it,
    just made the canvas size larger. But then I am starting to get concerned about file size. I want
    the lights at the top. When the background image repeats itself, the lights are ins....

    1. Looking for background,

Searching Video's for background,
advertisement



Background Question



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE