Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    2
    Member #
    28540
    Hi,
    I have a background image i want to use on my website. I made it using corel draw. I can make it any size. At the moment it's 2000x1700. What would be the css or html that would display it on any size monitor. Also, i wanted it to be a little big vertically because my website is gonna have more then a page size of content. Thank you.
    Repatilian

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Code:
    body:  {background:  (your background URL here)}
    If you want it to stay fixed while the page scrolls, you'll want this:
    Code:
    background-position:  fixed;
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    Yeah what he said. Alternatively, you can use percentages to size the image, but making in a background is wayyy simpler.
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.

  5. #4
    WDF Staff m3n0tu18's Avatar
    Join Date
    Jul 2011
    Location
    Devon, UK
    Posts
    1,467
    Member #
    28473
    Liked
    265 times
    okay resize the image to 1024x768 but high dps (not stupidly high that it takes ages to download) then add this into your body tag in the css

    background: url(../images/bg.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    That will cause the image to resize when you use a different screen resolution
    If you like my comments to your thread please click the LIKE button

    Check out my portfolio: Here!
    View my company Facebook Page
    View my company Website

    <<Plrease ignoer my typo's I have isdexlyia>>

  6. #5
    Junior Member iyornman's Avatar
    Join Date
    Aug 2011
    Location
    Cebu City, Philippines
    Posts
    11
    Member #
    28826
    try this link
    http://www.cssplay.co.uk/layouts/background.html

    view the source code.

  7. #6
    Junior Member
    Join Date
    Aug 2011
    Posts
    1
    Member #
    28833
    Quote Originally Posted by iyornman, post: 215855
    try this link
    http://www.cssplay.co.uk/layouts/background.html
    view the source code.
    Similar to this:[EDIT: Link drop removed by TheGAME1264]


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

html size on any monitor

Click on a term to search for related topics.
All times are GMT -6. The time now is 09:55 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com