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-size works not trustly

Featured Replies

Hi there,

its a simple html document,  made with neatbeans 8.3, on windows 10

and i only use html + css.

There is a content id which has a background like:

#content
   {  width: 50%;
      height: auto;
      background-color: transparent;
      float: right;
      margin-top: 2%;
      margin-right: 6%;
      margin-bottom: 5%;
      padding: 1px;      
      background-image: url('Pic123.png') ;
      background-repeat: no-repeat;
      background-size: cover;      
      background-position: top center; 

After this code was ready, it worked and still works, with each browser. Then

- I made a copy of the html doc,

- did not change any html or css code,

- except the text within the html-doc- content.

But Pic123 is not shown/presented with its full strukture. Looks like the browser tooks just a stripe from the middle of that pic and spread it over the whole content-space. (Imagen a pic at a wall, with a huge bold frame around and within just whitepaper with any type of texture. ) I'm the browser, i cut off the frame, also whats next to it and strech it now till it fits the content space.

I have no Idea what might be the reason.

 

 

 

 

 

  • Author


post a link or put it on codepen so we can see it in action;)




cant see its necesary, sorry.

Well, repeat as short as possible.
- the copy is equal to the original
- just the text is diffrent
@daveb, what code error you want to look for?

So, yesteday I replaced the original text to the copys, and the copy chnaged the look. Now it looks like the original.

Made me look at the
"
" and "

" tags.
Text of the orignal has less of those.
Its strange to me, that this changes the look of the background image.

Edited by brockmanig
br and p changed

Uploading the whole document to codepen or linking to the website lets us inspect the code. It's often easier to spot the problem.

On 1/27/2018 at 5:19 PM, brockmanig said:

cant see its necesary, sorry.

 

So for a simple answer with only your example code to go by its because you are missing the closing } for the #content class. I assume the rest of the page is irrelevant. 

  • Author

now I would even say codepen or a link is meaningless.
None of you would go on analyze thinking.
Browserbugs 'found' a symbol, a letter wich is left...
Thats what he has post here, its the one with the highest level.

Even that symbol is left within the netbean project, then what?
there is the org file and the copy.

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.