You need to Register for free and Login to post a message in the forum.

Forum

Subject: inline h1 - h4
Prev Next
You are not authorized to post a reply.

Author Messages
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:124

10 Nov 2007 11:59 AM  

While re-skinning my site using Lee's Issue 25 SEO friendly skinning techniques and the H1-H3 containers, I had an idea.

Using a lot of h2 - h4 tags on a page takes up lots of vertical space that is at a premium on today’s short wide monitors.  I thought that if I could create “inline” styles of h2 – h4 that merely bolded the text I could use them to emphasize important text and at the same time flag it to Google. Soon I had:

/* Inline h1-h4 that is really just bold or italic

 * used to emphisise text in paragraphs while showing the

 * importance of the text to Google as H1 - H4

 */

h1.inline, h2.inline, h3.inline, h4.inline

{   display: inline;

    font-size: 100%;

    font-weight: bold;

    color:Navy; /* temp just to show that the rule is triggering */

}

 

This CSS works but the FCKeditor insists on stuffing [p] and [/p] around the text preceding the [h1 class="”inline”]. Anyone got an easy way to keep the FCKeditor out of your way?

 

/DaveS

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3308

13 Nov 2007 3:16 PM  
Hello,

Changing the settings in the FCK editor is discussed in this forum post here
this discusses how to replace the p tags with br or div tags. - But in your case, if you wish the following text to be on the same line as the header text, I think I would go into the HTML and replace the p tags with div tags just for that line of code and keep the FCK editor settings as the default settings. - in your div tag you could then call the class of 'inline' which using your skin.css file will then style the text in line and hopefully keep it on the same line as the H2 text. ( I haven't tested this, it is just an idea)

Let us know how you get on,

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:124

13 Nov 2007 4:48 PM  
The following did produce the desired results. Note that  's were required since a couble words were bunched up.


h1.inline, h2.inline, h3.inline, h4.inline, inline
{   display: inline;
    font-size: 100%;
    font-weight: bold;
    /* color:Navy;  temp just to show that it is working */
}

So it is possible to put a few h2's and h3,s in your text to guide Google et al without eating up tons of vertice space.

Let's hope that they listen ,

/DaveS
tlyczko
Nuke Ace
Nuke Ace
Posts:41

30 Nov 2007 8:49 AM  
Posted By leesykes on 13 Nov 2007 3:16 PM
Hello,

Changing the settings in the FCK editor is discussed in this forum post here
This forum link doesn't appear to work -- I can't get it to load in either IE or FF.

This topic is of interest to me because I use Hx tags a LOT in the static site I'm transferring to DNN, I'm glad I found this thread.

Thank you, Tom

tlyczko
Nuke Ace
Nuke Ace
Posts:41

30 Nov 2007 9:45 AM  
My bad, the DNN site has something wrong with it, the above link does work, it only takes about 5 minutes to load after 2-3 refreshes.

Thanks, Tom
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2318


30 Nov 2007 9:49 AM  
That link took a long time to open, but it did open for me a few minutes ago.

Joe Craig
DNN Creative Support
Subscribe to the website
You are not authorized to post a reply.



ActiveForums 3.7

Latest Forum Posts

RE: Restart Application by leesykes
It will restart your DotNetNuke installation and reload the application.Clearing cache will clear th...
RE: How can i edit any module from front end by leesykes
hello,I have just tested this and can see exactly the same as you, I suspect the core team have set ...
RE: EasyCGI help? by leesykes
You may want to ask them to reset the correct permissions on your DotNetNuke installation files, som...
RE: quick question by leesykes
Hello,It will be possible to a degree, but it depends on how both of the skins have been built. You ...
RE: EasyCGI help? by Dr Joe
I'll let you know how it works out. I think I opened up about 6 tickets with them so far. ...
RE: EasyCGI help? by derpir
Hi Joe amazing to say the least! I will change host to PowerDNN as soon as possible, seems to me t...
RE: EasyCGI help? by Dr Joe
Amazing - I'm going through this exact same thing with EasyCGI! I managed to successfully instal...
Running the local host installation after building the application by saintX
My localhost installation of DNN was running blameless. After I oppened the application with VWD it ...
RE: quick question by derpir
Hello Is it possible to buy two skins and combine them? for example put one skins visual attributes...
RE: Environment Variables by leesykes
Thanks for the info,
RE: How can i edit any module from front end by sanju_k1421
ok if i added an text html . now i want to fill into that have to log in ,but i want that an...
Module not working when logged off. by t.ramya85
Hi friends,I have created two modules which interact with each other and i have kept one module to b...
RE: Environment Variables by fandnet
There are many ways to use variables like what I was trying to use...But here is how I did it.DotNet...
RE: OpenForce '08 by mgordon
It was truly a great time.  I really feel this year was much better than last year.  I hope to ge th...
Environment Variables by fandnet
I am creating a simple module that registered users can use to send an email invitation to people wh...
RE: How can i edit any module from front end by leesykes
I'm not sure that I follow, could you provide an example?
RE: Development of modules by leesykes
Hello,Glad you find them useful, at the moment there are not any plans to go into Module Development...
RE: SQL Server 2008 Documents Module DotNetNuke by leesykes
Hello,Thanks for the tip. Yes both connection strings are in correctly and the user has full permiss...
RE: Now, portal creation problem by jncraig
Since you have other issues with installing modules, etc. I believe that you are correct that it's a...
RE: How do I display the current time by jncraig
The [CURRENTDATE] skin object has a DateFormat attribute. The examples give MMMM dd, yyyy as a typi...
DotNetNuke Modules
RSS Feeds