Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

background problem when screen resolution changes

Featured Replies

Well I got a website I want to code and I'm not too good in coding though I'm designing/coding websites for 2-3 years(ocassional hobby).I always tried and retried and asked and searched but I always got side effects.So I want to make this one by-the-book 100% XHTML Strict/transitional W3C Valid

So I was thinking where should I start with and I thought I should start with the background.I can't seem to manage even this one.

As in every single thing I ever done I can't get it to look the same in every evil screen resolution

 

....Enough talking.As you see in the picture it has 2 parts. the first is a gradient from blue to white(bottom to top) and the other part is a black pattern thing.

How can I implement it?I can't simply adjust it's size to fit my resolution and browser.It needs to look the same for everyone.

 

Also while the top part can be made with a vertical 1px slice the bottom one has a pattern so it can't.

i was thinking I could divide the website in 2 DIVS:main and footer and set a height percentage % like 80&20 from CSS.Use as background for main a vertical slice and a big image for the footer.But still that wouldn't fix too much ...I don't know.

What would you do if it was your website?

post-8669-1232639065_thumb.jpg

Try this, make the background image (the black bar) thin about like this, with the full height:

 

[]

[]

[]

[]

[]

[]

 

Then, tile it (repeat-x).

 

Also do that with the gradient.

 

Report any problems back here.

  • Author

ok,I managed to solve it.I made 2 divs like I said body_main and body_footer

#body_main {
background: url(images/main_background.png) repeat-x;
position: absolute;
top: 0px;
left: 0px;
right: 0px;
height: 748px;
}
#body_footer {
background: url(images/footer_background.png);
position: absolute;
top: 748px;
left: 0px;
right: 0px;
height: 270px;
}

 

I tiled the gradient as you said and used a BIG 1920X1080 image of the black part as I couldn't tile it because it was a irregular texture.Not sure what the effect will be on the loading time but I hope it won't cause any problems.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.