Skip to content
View in the app

A better way to browse. Learn more.

The Daily Neopets Forums

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.

CSS Help!

Featured Replies

Since I am a web designer, I somehow became a good beginner at the CSS for Pet Pages. So here's what my code looks like:

--------------------------------------------

<style>
body{
background:#FFFFFF;
background-position:50% 50%

}
body, div, a{
font: 14 pt arial;
color: #FFFFFF;
text-align:center;
border: 2pt;
}
h1 {
height: 15px;
text-transform: lowercase;
font-size: 14pt;
font-family: Arial Black;
text-align: center;
color: #FFFFFF;
background:url("http://i1284.photobucket.com/albums/a576/SmileDreamly/Header_zps96cc7496.png");
background-repeat: no-repeat;
}
#nav {
top: 205px;
left: 75px;
width: 630px;
height: 30px;
z-index: 3;
}
#nav a {
text-decoration:none;
color:#FFFFFF
padding-left: 23px;
padding-right: 23px;
}
#nav a:hover {
color: #00E9F5;
}
a:link, a:active, a:visited {
text-decoration: none;
color: #0051FF;
}
a:hover {
color: #927F44;
}
b {
font: 7pt verdana;
color: #8FB677;
border-bottom: 1px dotted #7f7f7f;
font-weight: bold;
}
#pic {
left: 0px;
top: 0px;
right: 50px;
width: 780px;
height: 600px;
background: url("http://i1284.photobucket.com/albums/a576/SmileDreamly/background_zps92bbfe53.png");
z-index: -1;
background-position: 50% 13%
}
#info {
left: 74px;
top: 235px;
width: 632px;
z-index: 2;
padding: 0px;
}
.footer {
width: 632px;
padding: 5px 0px;
background-color: #C0D6B2;
border: 1px solid #759B60;
color: #000000;
z-index: 4;
text-align: center;
}
table {
background: none;
}
table a img, center p {
height: 0px;
width: 0px;
overflow: hidden;
}

-----------------------------

But it shows nothing... At all. What's the reason for this?

 

 

By the way the code help is by SunnyNeo. I just made the code as my own layout as in pictures and font family.

I'm not an expert, but you haven't finished off the <style > tag anywhere, so that might be the problem.

 

i.e. you need a < / style > somewhere (without spaces, obviously) probably at the end, I guess.

  • Author

Oh man. I did not know at the very bottom there's not end Style tag! Thank you for that notice. I'll try again and see what happens!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.