Jump to content

Archived

This topic is now archived and is closed to further replies.

thesingleparentperspective

p:first-letter

Recommended Posts

thesingleparentperspective

I just installed the dms (free) v1.1.3

and found the p:first-letter does not work.  I have this added to the random quotes up in the right side of the header and it worked in my previous theme but not this one.  

 

Any idea as to why this doesn't work?

http://thesingleparentperspective.com/

 

Share this post


Link to post
Share on other sites
greenfly

How are you entering the code in your CSS? 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
thesingleparentperspective

How are you entering the code in your CSS? 

 

Do you mean where?  If so, in the custom css section.  I even tried in the theme style.css with no luck

.random-quote {
    font-family: "Lovers Quarrel";
    font-size: 37px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 25px;
    border-left: 3px solid #ccc;
}
.random-quote p:first-letter {
      font-size: 100px; 
      font-family: "Lovers Quarrel";
      float: left; 
      line-height: 0.5;
      font-style:italic;
      text-shadow: 0 3px 0 #b2a98f,0 14px 10px rgba(0,0,0,0.15), 0 24px 2px rgba(0,0,0,0.1), 0 34px 30px      rgba(0,0,0,0.1);
}

The first part is working, just not the p:first-letter part.  The same code worked on a previous theme.

Share this post


Link to post
Share on other sites
James B

Hi there,

 

It does seem to be working. http://screencast.com/t/b8gOgpQKQOtU

 

You've given that paragraph the class of .random-quote. Then in the css you've called .random-quote p which won't work as the there isn't another p tag inside that class of random-quote etc.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
thesingleparentperspective

Hi there,

 

It does seem to be working. http://screencast.com/t/b8gOgpQKQOtU

 

You've given that paragraph the class of .random-quote. Then in the css you've called .random-quote p which won't work as the there isn't another p tag inside that class of random-quote etc.

 

That's weird.  You wouldn't happen to know how I can get it to show up right on my computer.  I'm using an acer chromebook. Is this a browser issue and if so how can I get it to show up on chrome?

Share this post


Link to post
Share on other sites
Danny

Try this:

 

.random-quote:first-letter {
      font-size: 100px; 
      font-family: "Lovers Quarrel";
      float: left; 
      line-height: 0.5;
      font-style:italic;
      text-shadow: 0 3px 0 #b2a98f,0 14px 10px rgba(0,0,0,0.15), 0 24px 2px rgba(0,0,0,0.1), 0 34px 30px      rgba(0,0,0,0.1);
}
 

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
thesingleparentperspective

 

Try this:

 

.random-quote:first-letter {
      font-size: 100px; 
      font-family: "Lovers Quarrel";
      float: left; 
      line-height: 0.5;
      font-style:italic;
      text-shadow: 0 3px 0 #b2a98f,0 14px 10px rgba(0,0,0,0.15), 0 24px 2px rgba(0,0,0,0.1), 0 34px 30px      rgba(0,0,0,0.1);
}
 

 

 

Thank you but that still isn't showing up right on my screen.

I've tried...

.random-quote p:first-letter {}

p.random-quote:first-letter {}

and

.random-quote:first-letter {}

 

While it appears to be working on another browser it isn't displaying right on mine so I'll have to use another computer and see it on other browsers.

Share this post


Link to post
Share on other sites
James B

Try wrapping the paragraph in it's own div and naming that instead of the class. Then use the div name followed by the p first letter code. 

 

#div p:first-letter


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

×