Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Marketplace » Customization, Design, Programming... »

[SOLVED] CSS display property and heading in post


  #1  
Old Jul 2, 2010, 02:46 PM
bigliettaio's Avatar
bigliettaio
 
128 posts · Nov 2009
Italy
Why this display property
display:inline
given to<h3> element:
Aggiornamenti inside this post in not properly executed :

HTML Code:
<h3 style="display:inline" title="Nota dell' ufficio stampa dell' Inter sull' ufficializzazione della data e della sede dell Supercoppa TIM 2010 da parte della Lega Seria A">Aggiornamenti</h3> [ aggiornamento del 2-7-2010 h 22.02]
CSS W3schools reference
CSS Display and Visibility:
2nd & 3rd paragraph
CSS display Property

  #2  
Old Jul 2, 2010, 04:21 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
The WordPress editor puts an invisible <p> tag around the line after the <h3> element. Go into HTML view and make sure there are no line spaces between the <H3> and what follows.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Jul 12, 2010, 08:34 AM
bigliettaio's Avatar
bigliettaio
 
128 posts · Nov 2009
Italy
Quote:
The WordPress editor puts an invisible <p> tag around the line after the <h3> element. Go into HTML view and make sure there are no line spaces between the <H3> and what follows.
Sorry
but i ask to wordpress.org forum support and it seems it isn' t true.
Maybe you want to mean
Quote:
Browsers automatically add an empty line before and after a heading.
as write in the Note below first example of HTML Headings in w3school HTML tutor
this isn' t an issue of wordpress editor.

Anyway bypassing that details about who add empty line after h1,
i took a wlook abouhat t you told me and there was no space.
At the moment css attribute display:inline wasn' t add to <h3>.
I'd like to solve/understan this situation.

Last edited by bigliettaio; Jul 12, 2010 at 07:20 PM.
  #4  
Old Jul 18, 2010, 06:23 AM
bigliettaio's Avatar
bigliettaio
 
128 posts · Nov 2009
Italy
i think because h3.inline inherits line-height from
css.php h3 rules of theme in use in my site that is atahualpa 3.44
Code:
....
h3 { font-size: 24px; line-height: 1.3; margin: 1em 0 .2em; }
...
Anyway teh propbel in not the extra line
BUT having h3 heading on the same row of following text:
PS
I try adding in line style attribute of <h3> mentioned : line-height:0; and also margin:0pt,
i.e. :
Code:
<h3 style="display:inline!importan;line-height:0;">
or
Code:
<h3 style="display:inline!importan;line-height:0;margin:0pt">
but no way to have heading and text on the same row.

Last edited by bigliettaio; Jul 18, 2010 at 06:55 AM.
  #5  
Old Jul 18, 2010, 09:26 AM
bigliettaio's Avatar
bigliettaio
 
128 posts · Nov 2009
Italy
@ STB 2nd
As you talked me about line-height it sound me strange:
cause if i set an element toi bi displayed as inline elemente that value will be cleared it's obviuosly.

The solution has been found:
add attribute display:inline to following <p>...
and everythings works fine without modifing no rules of <h3> ( only adding style="display:inline"
Take a look here.

Last edited by bigliettaio; Jul 18, 2010 at 09:28 AM.

Bookmarks

Tags
display:inline

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom job: Adding fields to search property terminator Customization, Design, Programming... 1 Apr 21, 2010 04:29 PM
[SOLVED] CSS 'display' property set to 'none' question wardrob Atahualpa 3 Wordpress theme 2 Mar 11, 2010 11:44 AM
[SOLVED] Add property in index.php miseroprospero Center area post/pages 6 Feb 1, 2010 07:11 AM
[SOLVED] Post heading on Multiple seems &lt;h2&gt; whereas single post has &lt;h1&gt; kostermw Post-Kicker, -Byline & -Footer 15 Oct 18, 2009 08:38 AM
[SOLVED] Display Custom Fields and Values Under Post Heading grasshopper Atahualpa 3 Wordpress theme 4 Jul 2, 2009 12:40 PM


All times are GMT -6. The time now is 08:14 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.