1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

help with website design please

Discussion in 'HTML & Website Design' started by coolspot, Sep 4, 2012.

  1. #1
    can someone tell me please how to change the background colour on my website. i beleive it is a .gif but i have photoshopped the gif so that it is white in the middle with grey shading on each side.

    when i view the site on my pc it looks ok, but on my phone, the background is slightly grey so you can see white edges around images where the bg doesnt match. is it my phone / bg colour etc? please help.

    site is http://www.prosimulator.net/
     
    coolspot, Sep 4, 2012 IP
  2. MarieBee

    MarieBee Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just add the following code to your web page between the <HEAD> and </HEAD> tag's.

    <HEAD>
    <BODY bgcolor="#000000">
    </HEAD>

    Just change the #000000 with the color code that you want. If you do not know what the color code is of the color you want, visit this link. angelfire.com/nm/thehtmlsource/color
     
    MarieBee, Sep 4, 2012 IP
  3. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #3

    LOL, that's not how you apply CSS.

    First: bgcolor is obsolete. It's called background-color now
    Second: If you put the CSS in your <head> you would do it like this

    
    <head>
         <style type="text/css">
             body{
                  background-color: #000000;
             }
         </style>
    </head>
    
    HTML:
    Third: He would have to search his existing CSS files for other already existing body backgrounds and alter them if needed.
     
    GMF, Sep 4, 2012 IP
  4. MrThind

    MrThind Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <body background="file-name.gif" repeat="x">

    It's a simple way to use .gif background
     
    MrThind, Sep 5, 2012 IP
  5. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #5
    This is obsolete


    Use CSS instead

    
    body {
    background: url('file-name.gif') repeat-x;}
    
    Code (markup):
     
    GMF, Sep 5, 2012 IP
  6. xuled

    xuled Banned

    Messages:
    286
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    When you are designing any site then you should keep this in your mind that your site may be visited either from pc or from mobile. So this is also necessary to develop a mobile site that fits best in the mobile phones.
     
    xuled, Sep 5, 2012 IP
  7. Muhammad Asim

    Muhammad Asim Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    <body bgcolor="#000215" /> changed the background color

    body { background: url('file-name.gif') Changed the background image
     
    Muhammad Asim, Sep 5, 2012 IP
  8. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #8
    Don't worry, no matter how many times you say it you'll STILL get the dumb as fried **** re-re posters saying to use attributes like bgcolor that have no business even being on a website written after 1997 in the first damned place. See pretty much everyone other than you who responded to this thread, who to be frank have no business flapping their gums on the subject!

    As to OP's question, the site itself is filled with the typical decade or more out of date coding snafu's... kind of what one comes to expect from joomla or wordpress templates. The endless pointless DIV, tables and IMG doing UL+background-image's job on the list, mixing multiple clearing styles when it should need none, nonsensical use of heading tags, nine separate stylesheets when you don't even have media types (say hello to slow pageloads), etc, etc... and that's before we even talk the uselessly tiny fixed metric (px) fonts and fixed width layout.

    It's a laundry list of how not to build a website, and as I tell many people -- it's time to throw that away and start over from scratch; there's little if anything worth saving from that.
     
    deathshadow, Sep 5, 2012 IP
  9. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #9
    Yes, but there is still the probability that a sane person, with a similar problem, might come by and read this thread.


    Hope dies last :p
     
    GMF, Sep 6, 2012 IP
  10. Jocaziggg

    Jocaziggg Greenhorn

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #10
    Maybe your border color of the div tags or tables is set to be white....check that...
     
    Jocaziggg, Sep 6, 2012 IP