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-color:#FFFFFF;" and NO bg in prewiev

Featured Replies

How to change background color?

It's code of the document:

 

* { margin: 0; 
padding: 0;
[b]background-color:ccffff;[/b]
}

 

To prove that the bg is still white see here (outdated....)

 

Please help!

 

 

Thanks,

JohnyKuleczka

 

 

PS: Sorry for the name of the topic, not "#FFFFFF", but "#CCFFFF".

the below should work

 

 

* { margin: 0;
padding: 0;
background:#ccffff;
}

  • Author

Oh, it did work. The more questions I ask, the more I notice I have to learn...

So silly problem and an "easy" (not for me of course :p) solution.

Thanks again,

JohnyKuleczka

 

BTW. I still got the problem with borders of that table placed on this site.

I've got

#lewy {
width:20%;
height:auto;
float:left;
border-left:thin;
text-align:center;
border:1px #CCCCCC;

}
#srodek	{
width:60%;
height:auto;
float:none;
background-color:#CCCCCC;
text-align:justify;
border:1px #CCCCCC solid;

}
#prawy	{
width:20%;
height:auto;
float:right;
border-right:thin;
text-align:center;
border:1px #CCCCCC;
}

 

And in html

<table id="table" align="center" cellspacing="2">
<tr>
		<td id="lewy">Miejsce</td>

		<td id="srodek">Miejsce</td>

		<td id="prawy">Miejsce</td>

</tr>


</table>

 

Whats wrong, that there are no borders ?

How to change background color?

It's code of the document:

 

* { margin: 0; 
padding: 0;
[b]background-color:ccffff;[/b]
}

 

To prove that the bg is still white see here (outdated....)

 

Please help!

 

 

Thanks,

JohnyKuleczka

 

 

PS: Sorry for the name of the topic, not "#FFFFFF", but "#CCFFFF".

 

The asterix will match every element on your page. If it's the page's background color you use html or body.

html {
 background: #aaa; // light grey background
}
body {
 background: #666; // dark grey body background
 width: 50em;
 margin: 0 auto;
}

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.