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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Best way to surround text with css box inside of p
Old 12-24-2009, 01:40 PM Re: Best way to surround text with css box inside of p
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
ANYTHING surrounded by the < & > delimiters will be parsed by a browser as renderable HTML code.

Try it for yourself.
put <a_tag_i_made_up> A made up tag </a_tag_i_made_up> into a page and see what happens.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
 
Register now for full access!
Old 12-24-2009, 01:51 PM Re: Best way to surround text with css box inside of p
bswinnerton's Avatar
Skilled Talker

Posts: 57
Location: Montville, CT
Trades: 0
I don't think you understand what I'm trying to say. Even if I put: <pre><div class="code">this is code with no delimiters</div></pre>, anything after that isn't part of the P element.

So just for clarification let's say I have:

Code:
<p>
<pre><div class="code">this is code with no delimiters</div></pre>
whatever I write here is no longer part of p. So the ending div or ending pre must be stopping the p
bswinnerton is offline
Reply With Quote
View Public Profile
 
Old 12-24-2009, 01:55 PM Re: Best way to surround text with css box inside of p
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Sure, but WHY do you need the div inside the<pre> element?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-24-2009, 01:57 PM Re: Best way to surround text with css box inside of p
bswinnerton's Avatar
Skilled Talker

Posts: 57
Location: Montville, CT
Trades: 0
I don't necessarily, but that unfortunately doesn't solve the problem.
bswinnerton is offline
Reply With Quote
View Public Profile
 
Old 12-24-2009, 02:05 PM Re: Best way to surround text with css box inside of p
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Do we get a link that demonstrates the problem? Because I'm obviously missing something here.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-24-2009, 02:07 PM Re: Best way to surround text with css box inside of p
bswinnerton's Avatar
Skilled Talker

Posts: 57
Location: Montville, CT
Trades: 0
Check out the latest blog entry under the picture of the bear: http://bit.ly/72eXhZ
bswinnerton is offline
Reply With Quote
View Public Profile
 
Old 12-24-2009, 02:22 PM Re: Best way to surround text with css box inside of p
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And the problem is??
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-24-2009, 02:27 PM Re: Best way to surround text with css box inside of p
bswinnerton's Avatar
Skilled Talker

Posts: 57
Location: Montville, CT
Trades: 0
Quote:
Originally Posted by chrishirst View Post
And the problem is??
Lol, look at the text size of something before the code, and then after.
bswinnerton is offline
Reply With Quote
View Public Profile
 
Old 12-24-2009, 02:47 PM Re: Best way to surround text with css box inside of p
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I cannot see any difference at all.

Firefox, Seamonkey, IE8, Opera.

The FF DOM Inspector shows no problem at all with node nesting.

Have you cleared your browser cache?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-24-2009, 10:57 PM Re: Best way to surround text with css box inside of p
bswinnerton's Avatar
Skilled Talker

Posts: 57
Location: Montville, CT
Trades: 0
In Firefox:



In Safari:




And in Google Chrome:

Attached Images
File Type: png firefox.png (135.0 KB, 16 views)
File Type: png safari.png (36.8 KB, 13 views)
File Type: png chrome.png (36.8 KB, 14 views)
bswinnerton is offline
Reply With Quote
View Public Profile
 
Old 12-25-2009, 06:54 AM Re: Best way to surround text with css box inside of p
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Very odd?
yet on my machine there is absolutely no difference, I've even taken a selection from a screenshot and overlayed the "and" onto "command" and they match exactly.

__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-26-2009, 10:23 AM Re: Best way to surround text with css box inside of p
bswinnerton's Avatar
Skilled Talker

Posts: 57
Location: Montville, CT
Trades: 0
That's so weird. Hmm, maybe it's a Mac thing? I'll have to test it out on a few other platforms.
bswinnerton is offline
Reply With Quote
View Public Profile
 
Old 03-15-2010, 12:01 PM Re: Best way to surround text with css box inside of p
bswinnerton's Avatar
Skilled Talker

Posts: 57
Location: Montville, CT
Trades: 0
I still have not figured out a way to resolve this. Is there anything else that I could use instead of <pre> inside of the <p>? I've tried using <code>, which works great, but unfortunately my text box is only around each line and not around the entire block of code.
bswinnerton is offline
Reply With Quote
View Public Profile
 
Old 03-17-2010, 10:57 PM Re: Best way to surround text with css box inside of p
Average Talker

Posts: 22
Trades: 0
did you test it on other platforms besides mac?
__________________
Advanox Online Branding - Custom Identities, Design, Marketing, Promotion & Publishing
"Brand Your Business Successfully"
Please login or register to view this content. Registration is FREE
Advanox is offline
Reply With Quote
View Public Profile
 
Old 03-18-2010, 12:37 AM Re: Best way to surround text with css box inside of p
bswinnerton's Avatar
Skilled Talker

Posts: 57
Location: Montville, CT
Trades: 0
Yes, look 3 posts above yours..

You can see a minor difference in IE, but a more drastic difference on Firefox & Safari.
bswinnerton is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Best way to surround text with css box inside of p

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.83732 seconds with 12 queries