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
Old 07-21-2010, 10:36 AM Inline tag elements
Registered User

Posts: 86
Name: John Dacu
Trades: 0
I have a question. It involves javascript but is an HTML issue.
Let say we have an inline element like a span how initialy is hidden. when we use a jquery statement to show it (like $("span").show()); the element will became block or it will stay inline. I'm a little confuse.
johnny.dacu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-21-2010, 11:58 AM Re: Inline tag elements
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Elements are by default either block or inline. For example, a DIV is a block element, but a SPAN is an inline element.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-23-2010, 03:54 AM Re: Inline tag elements
Registered User

Posts: 86
Name: John Dacu
Trades: 0
Quote:
Originally Posted by anitha sharma View Post
Hi

it is good and is used in many ways

Regards,

phe9oxis
I'm glad you got it because i haven't.
@wayfarer07 i know which are block and inline elements by default. I'm can't figure it out if a default inline element and has no css reference, when we change it his state like .show() it will end up a block element. I have done some tests, but i'm not really sure. A span seems to be block after but i'm not sure...
johnny.dacu is offline
Reply With Quote
View Public Profile
 
Old 07-23-2010, 05:16 AM Re: Inline tag elements
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
depends on what the $("span").show()) method actually does.

I'd guess that it might just possibly set .style.display = 'block';
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-23-2010, 08:54 AM Re: Inline tag elements
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Originally Posted by chrishirst View Post
depends on what the $("span").show()) method actually does.

I'd guess that it might just possibly set .style.display = 'block';
The $().show() method in jQuery sets an element's display to its default. In other words, if it's an inline element it gets set to inline, if it's a block element, block.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-27-2010, 01:44 PM Re: Inline tag elements
Registered User

Posts: 86
Name: John Dacu
Trades: 0
Tnx wayfarer07. This is the answers that i looked for. I shall check now if there isn't somewhere a js statement or a css class that who makes my span block.
johnny.dacu is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Inline tag elements
 

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