Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Why doesn't this border work?
Old 03-06-2007, 03:38 AM Why doesn't this border work?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Can anybody give me some advice on why this isn't working? I'm trying to make the first letter of an article stand out; ideally I'd like to figure out how to make it drop and push the rest of the paragraph in a little bit, like in an old book. I've been able to change the basics, but I'm trying to get a single-pixel border around the letter, which just won't work. And this style isn't IE friendly at all; the letter just disappears behind the rest of the paragraph.

Any thoughts on how to fix this? An example in action is my digital soft focus article, with the relevant code below:

Code:
<span class="firstLetter">M</span>ost lens-makers ...

.firstLetter {
    font-size:2.5em;
    color:#AA7766;
    display:block;
    vertical-align:bottom;
    float:left;
    border:1px black;
}
I've tried with a span and a div, and get the same results.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
 
Register now for full access!
Old 03-06-2007, 04:23 AM Re: Why doesn't this border work?
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
Trades: 0
Maybe something like that will help you:

Code:
<style>
.firstLetter {

    float:left;
    font-size: 2.5em;
    color:#AA7766;	 
    border: 1px solid black;
}
</style>
<p>
<span class="firstLetter">M</span>
Lorem ipsum dolor sit amet consectetuer elit lorem dapibus urna ut. Habitasse Sed fringilla lacinia laoreet porttitor urna sit condimentum eu et. Habitasse hendrerit ut natoque eleifend enim elit cursus interdum pretium egestas. Nunc justo tincidunt tempor orci ornare penatibus et ullamcorper malesuada sem. Semper at libero magnis Aenean laoreet elit Praesent adipiscing id ipsum. Semper Nam id urna semper pulvinar vitae lacinia leo feugiat pretium. Porta vestibulum.

Ante fringilla ut Ut lacus quis hendrerit mauris consectetuer eu Nulla. Nullam metus condimentum natoque justo eros faucibus Aenean mauris vestibulum metus. Euismod wisi eu Fusce consequat justo eu laoreet tempor porttitor eget. Purus quis vitae quis nunc Curabitur Vestibulum et ac et nunc. Urna parturient dolor velit pulvinar justo augue platea consectetuer lacinia id. Nam.

Ipsum sem dolor Nunc cursus urna urna vel quis tempus velit. Interdum mus ante quis Aliquam pretium Morbi Nulla tempor Nulla tempor. Egestas vitae eget Vivamus cursus Curabitur In adipiscing Vestibulum venenatis ut. Tincidunt sit quam platea justo tempor consequat interdum Lorem Vivamus a. Velit Curabitur nisl semper auctor lacinia enim amet rhoncus tortor tempor. Ut Curabitur enim.

Condimentum consectetuer pharetra Quisque facilisis ac auctor nulla eros semper cursus. Risus ipsum accumsan ultrices nunc elit tortor mauris non In condimentum. Auctor pretium eget In interdum sit vel et urna Nunc mauris. Phasellus nibh libero quis pharetra Integer nunc dolor nec tincidunt elit. Laoreet felis egestas dictumst mollis feugiat Nulla Sed at mattis orci. Vel amet tortor aliquam adipiscing ligula lacus massa cursus feugiat sodales. Lorem.

</p>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Old 03-06-2007, 08:17 AM Re: Why doesn't this border work?
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Yes.
When specifying the border like you're trying, you'll need he following format.

border: width type color
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 03-06-2007, 01:16 PM Re: Why doesn't this border work?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yep, it should be: border 1px SOLID black.

Here's an excellent article on Dropcaps - which you can modify to suit your needs:
http://www.mandarindesign.com/dropcaps.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Why doesn't this border work?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46777 seconds with 12 queries