Jump to content

Hi everyone! This is something that I still have not found out how to do. I was wandering how to make your background image take the full screen and not just one part of it.

 

Example: You have a 1000x1000 image that you want to display as a background. If someone is using a screen with a smaller resolution the picture is to big but for someone using a bigger resolution the picture is too small.

 

How do you manage to make the image fit perfectly on every screen?

Link to comment
https://linustechtips.com/topic/358674-css-background/
Share on other sites

Link to post
Share on other sites

Hi everyone! This is something that I still have not found out how to do. I was wandering how to make your background image take the full screen and not just one part of it.

 

Example: You have a 1000x1000 image that you want to display as a background. If someone is using a screen with a smaller resolution the picture is to big but for someone using a bigger resolution the picture is too small.

 

How do you manage to make the image fit perfectly on every screen?

You'll need to look at responsive design. 

CPU: AMD Ryzen 5 5600X | CPU Cooler: Stock AMD Cooler | Motherboard: Asus ROG STRIX B550-F GAMING (WI-FI) | RAM: Corsair Vengeance LPX 32 GB (4x 8 GB) DDR4-3000 CL16 | GPU: Nvidia GTX 1060 6GB Zotac Mini | Case: K280 Case | PSU: Cooler Master B600 Power supply | SSD: 1TB  | HDDs: 1x 250GB & 1x 1TB WD Blue | Monitor: 24" Acer S240HLBID | OS: Win 11 Pro.

 

Home Lab:  Lenovo ThinkCenter M82 Hyper-V Server 2022 | Dell OptiPlex 9020 Hyper-V Server 2022 | TP-LINK TL-SG108E | Cisco Catalyst C2960CG 8 Port Switch | HP MicroServer G8 SCCM Server | 2x Dell PowerEdge R630 Hyper-V Server 2022

 

 

Link to comment
https://linustechtips.com/topic/358674-css-background/#findComment-4866738
Share on other sites

Link to post
Share on other sites

You'll need to look at responsive design. 

hate fast typers...always steal the answer 

Case: NZXT H440 CPU: i7 6700K @ 4.0 Cooler: Antec Kuhler H2O 920 Graphics Card: Zotac Mini GTX1070 Ti Motherboard: Gigabyte Z170 K3 RAM: Kingstone Fury 2x8GB Storage: Crucial P1 SSD, Seagate - Barracuda 2TB 3.5, Hitachi - Deskstar 500 3.5" PSU: Corsair Enthusiast 550W 80+ Mouse: Logitech G403 OS: Windows 10 Home 64bit  Audio: ATH-AD500X

Link to comment
https://linustechtips.com/topic/358674-css-background/#findComment-4866750
Share on other sites

Link to post
Share on other sites

hate fast typers...always steal the answer 

heheheuheuheuheueheuhe  :ph34r:  :ph34r:  :ph34r:

CPU: AMD Ryzen 5 5600X | CPU Cooler: Stock AMD Cooler | Motherboard: Asus ROG STRIX B550-F GAMING (WI-FI) | RAM: Corsair Vengeance LPX 32 GB (4x 8 GB) DDR4-3000 CL16 | GPU: Nvidia GTX 1060 6GB Zotac Mini | Case: K280 Case | PSU: Cooler Master B600 Power supply | SSD: 1TB  | HDDs: 1x 250GB & 1x 1TB WD Blue | Monitor: 24" Acer S240HLBID | OS: Win 11 Pro.

 

Home Lab:  Lenovo ThinkCenter M82 Hyper-V Server 2022 | Dell OptiPlex 9020 Hyper-V Server 2022 | TP-LINK TL-SG108E | Cisco Catalyst C2960CG 8 Port Switch | HP MicroServer G8 SCCM Server | 2x Dell PowerEdge R630 Hyper-V Server 2022

 

 

Link to comment
https://linustechtips.com/topic/358674-css-background/#findComment-4866753
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×