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.

CSS Text issue

Featured Replies

Hi guys,

 

I've created a menu in CSS and two items display just fine but one seems out of place. I can't figure out why, here's a picture:

 

post-12976-065328500 1286289804_thumb.png

 

And my css for that portion is:

 

 p:first-letter{
              text-transform: uppercase;
         }
       p {
       color: #424242;
       font-family: "Adobe Caslon Pro", "Hoefler Text", Georgia, Garamond, Times, serif;
letter-spacing:0.1em;
text-align:center;
margin: 40px auto;
text-transform: lowercase;
line-height: 145%;
font-size: 14pt;
font-variant: small-caps;
       }

TWITTER HEADLINE

       font-family: "Adobe Caslon Pro", "Hoefler Text", Georgia, Garamond, Times, serif;
font-style: italic;
       color: #424242;
	}

       a { 	font-style: normal;
font-variant: small-caps;
text-decoration: none;
color: #afafaf;
       font-size: 14px;
       }

.desc
{
position:absolute;
right:280px;
top:0px;
}

.pic{
float:left;
margin:0 15px 15px 0;
border:5px solid white;
width:200px;
height:250px;
}

.pic a{
width:200px;
height:250px;
text-indent:-99999px;
display:block;
}

div.nomargin{
margin-right:0px;
}

#container{
width:890px;
margin:20px auto;
}

.contact
{
position:absolute;
right:0px;
top:0px;
}

.about
{
position:absolute;
right:140px;
top:0px;
}

 

Yes, it's messy but I just want it to work for now!

 

Any ideas anyone?

 

Thanks!

is it possibly to do with this rule...

 

TWITTER HEADLINE

       font-family: "Adobe Caslon Pro", "Hoefler Text", Georgia, Garamond, Times, serif;
       font-style: italic;
       color: #424242;
               }

 

It just seems a little out of place to me.

I'd need to see the HTML for the menu before I can tell you exactly why, but looking at your CSS I can see you don't have correct syntax after this part:

 

TWITTER HEADLINE

 

Can you paste the HTML also, or even better a live link?

 

Darren

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.