Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 418 Vote(s) - 3.52 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Span Misaligns when Text gets too Long

#1
First, a couple of limitations:

1. I have a limited CSS vocabulary, so I would appreciate some schooling on that, and
2. The only thing I have the power to change is a global style sheet.

I have a list of links called a breadcrumb that looks like this:

![before](
)

Except when you increase the text size or number of sub elements, then it looks like this:

![after](
)

When I press F12 and view the HTML, it looks like this:

<div id="Breadcrumb">
<span id="dnn_dnnTEXT_lblText" class="Intro">You are here:</span>
<span id="dnn_dnnBreadcrumb_lblBreadCrumb">
<a class="SkinObject" href="https://www.c-ied.org/Projects.aspx">Projects</a>
<span class="Sep"></span>
<a class="SkinObject" href="https://www.c-ied.org/Projects/Capabilities.aspx">Capabilities</a>
<span class="Sep"></span>
<a class="SkinObject" href="https://www.c-ied.org/Projects/Capabilities/MaritimeInitiative.aspx">Maritime Initiative</a>
<span class="Sep"></span>
<a class="SkinObject" href="https://www.c-ied.org/Projects/Capabilities/MaritimeInitiative/MSC2012.aspx">MSC 2012</a>
<span class="Sep"></span>
<a class="SkinObject" href="https://www.c-ied.org/Projects/Capabilities/MaritimeInitiative/MSC2012/6June.aspx">6 June</a>
</span>
</div>

This is in a DotNetNuke CMS, so I can go in the Site Settings and mess with the Style Sheet Editor. Nothing I tried in there has had any effect, except `#dnn_dnnBreadcrumb_lblBreadCrumb {width: 100%}` which made it look even worse.

I've also taken the HTML above and placed it above some text blurbs I was adding in another module. There, it looks fine. Back to F12 again and the only lines in the TraceStyles that look different for the dnn_dnnBreadcrumb_lblBreadCrumb span were some crossed-out styles:

![F12 After](
)

whilst before it was:

![F12 Before](
)

So, this all has to be viewed in IE. Is there a CSS property I can use on some selector or another that will make this work?
Reply

#2
It looks like the `font-size` for the breadcrumbs have been set to a specific pixel value. You will likely need to set the `line-height` to a specific pixel value as well.

(Although this is not ideal. The user should be able to increase the text-size.)
Reply

#3
It's really hard to know without seeing the rest of your DOM, but it seems like the #dnn_dnnBreadcrumb_lblBreadCrumb is just being enlarged and no longer fitting into its container element (#Breadcrumb). Therefore it wraps.

I'd first try hacking it with something like this:

#Breadcrumb {
white-space: nowrap;
width: 100%;
}
Reply

#4
Nasty as it is, you could try overflow:hidden on your container #Breadcrumb. While wrapping should then be prevented, you could lose long breadcrumbs to the hidden part of the container.

Another solution, measure the width of each breadcrumb item, and when it approaches the bounds of your container, truncate the contents for example by replacing intermediate items between 'you are here' and say the final two/three items with a single non-clickable ellipsis (...) item.
for example:

You Are Here: Projects > ... Msc 2012 >
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through