Solved

html text formatting question

Posted on 2010-09-07
4
194 Views
Last Modified: 2012-05-10
When you preview the code you will see there are 3 different lines as a result:
Dresses ›
Real Dresses ›
Real Green Dresses

Is it possible to show it all on a single line:
Dresses › Real Dresses › Real Green Dresses

This example has been copied from:
http://www.google.com/support/webmasters/bin/answer.py?answer=185417

But it seems they are showing it wrong in this example because the result does not appear in a single line.
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">

  <a href="http://www.example.com/dresses" itemprop="url">

    <span itemprop="title">Dresses</span>

  </a> ›

</div>  

<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">

  <a href="http://www.example.com/dresses/real" itemprop="url">

    <span itemprop="title">Real Dresses</span>

  </a> ›

</div>  

<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">

  <a href="http://www.example.com/clothes/dresses/real/green" itemprop="url">

    <span itemprop="title">Real Green Dresses</span>

  </a>

</div>

Open in new window

0
Comment
Question by:seopti
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:bureshd
ID: 33621258
Place all three <a> tags in one Div. Otherwise, you will need to style the 3 divs to line up on the same line.
0
 
LVL 2

Expert Comment

by:bureshd
ID: 33621265
Such as:
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">

  <a href="http://www.example.com/dresses" itemprop="url">

    <span itemprop="title">Dresses</span>

  </a> ›

  <a href="http://www.example.com/dresses/real" itemprop="url">

    <span itemprop="title">Real Dresses</span>

  </a> ›

  <a href="http://www.example.com/clothes/dresses/real/green" itemprop="url">

    <span itemprop="title">Real Green Dresses</span>

  </a>

</div>

Open in new window

0
 

Author Comment

by:seopti
ID: 33621307
Thanks, I have tried this but it breaks the microformat.

It is mandatory there is a <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb"></div> with each breadcrumb link.

Is there a different solution?
0
 

Accepted Solution

by:
seopti earned 0 total points
ID: 33621429
style="display:inline" is the solution
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now