Results 1 to 8 of 8

Thread: Anyone Good With HTML or CSS?

  1. #1

    Question Anyone Good With HTML or CSS?

    Literally been at this for hours but here is my problem:

    I made my background image so big it will be viewable on 4k monitors but I want it to auto resize so it can be viewed on my monitor for example which is 1080p (1920x1080).

    I have messed around with tons of settings and either got the half of it on my monitor or it is placed in the centre and a bit to the left has been cut off and a bit to the right has been cut off.

    Can anyone help me?

  2. #2

    Default

    It's background-size property you're looking for. If you set it to 'cover' it should do the trick. Here's an example:
    https://jsfiddle.net/pmo80poq/

  3. #3

    Default



    Quote Originally Posted by elaboration View Post
    It's background-size property you're looking for. If you set it to 'cover' it should do the trick. Here's an example:
    https://jsfiddle.net/pmo80poq/
    Already used that, as well as tons of other code

  4. #4

    Default

    Could you possible give an example Or post the code you are using.

    How are you scaling the background. Is it given a set dimension or are you using percentage in css?

  5. #5

    Default



    Quote Originally Posted by LightYoshi View Post
    Could you possible give an example Or post the code you are using.

    How are you scaling the background. Is it given a set dimension or are you using percentage in css?
    Click image for larger version. 

Name:	f4cf889a4bcbb2894994eba6f359f351.png 
Views:	32 
Size:	14.1 KB 
ID:	23906

    There is my code, I have tried doing all sorts, cover, contain, width and height percentages or px, tried center center, I've tried margins and padding (pardon the pun ), tried making it fixed or adding a scroll attachment to it, tried a lot. All I want is that the 4k image will resize itself so people without 4k monitors can view the whole thing and for it the show on the whole page, top to bottom, left to right.

  6. #6

    Default

    Also I have another problem, this time with php, here is some code: Click image for larger version. 

Name:	f01046ff9819b0eeff35d826af4effe3.jpg 
Views:	28 
Size:	38.1 KB 
ID:	23907

    I have a login bit at the top of my page, when the person is logged in I want that to disappear and have it say "Welcome (username)" with a logout button. What do I have to change for it to work? Would be really awesome for you guys to help me!

  7. #7

    Default

    Are you using a session token? It might not be able to track the login state without that.

  8. #8

    Default



    Quote Originally Posted by Amcon View Post
    Are you using a session token? It might not be able to track the login state without that.
    I've tried using the session token but I can't get it to work. It's kind of confusing, all this is new to me.

Similar Threads

  1. Website design (php/html)
    By HuskyBB in forum Computers & Gaming
    Replies: 2
    Last Post: 29-Jul-2012, 17:43
  2. Maybe one of you guys that know HTML can help me out.
    By Kip in forum Computers & Gaming
    Replies: 7
    Last Post: 28-Jun-2008, 18:30
  3. HTML help
    By d4l in forum Computers & Gaming
    Replies: 32
    Last Post: 15-Mar-2008, 06:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
ADISC.org - the Adult Baby / Diaper Lover / Incontinence Support Community.
ADISC.org is designed to be viewed in Firefox, with a resolution of at least 1280 x 1024.