Solved

Dropshadow style spacing and hyperlink

Posted on 2013-01-25
7
287 Views
Last Modified: 2013-03-04
I have a drop shadow screenname and there are 2 problems with it.

1) I'm trying to get space after it and it doesn't take. It overlaps with what's below it.
2) When I make it a hyperlink, it breaks funny. The second line below is a hyperlink.

Messed up ScreenName
Here is the image without the hyperlink, it runs into the box below it.

Runs into box below.
Here is the code for the screenname:
.ScreenName, .ScreenName a:link, .ScreenName a:visited, .ScreenName a:link:hover
{
   text-shadow: 1px 2px 3px #323232; /* filter: shadow(Color=#333333, Direction=135, Strength=5); */
   text-transform: uppercase;
   font: 'Trebuchet MS' , Arial, helvetica, verdana, sans-serif;
   font-size: 16px;
   font-weight: bold;
   padding: 3px 6px 3px 6px;
   margin-left: 15px; /*   width: 200px; */
   color: #FFF;

}

.ScreenName, .DarkBlueBox, .LightBlueBox, .InstructionBox, .ScreenName a:link, .ScreenName a:visited, .ScreenName a:link:hover
{
   border-style: none;
   -webkit-box-shadow: -3px 3px 4px rgba(50, 50, 50, 0.90);
   -moz-box-shadow: -3px 3px 4px rgba(50, 50, 50, 0.90);
   box-shadow: -3px 3px 4px rgba(50, 50, 50, 0.90);
}

.ScreenName, .DarkBlueBox, .InstructionBox, .ScreenName a:link, .ScreenName a:visited, .ScreenName a:link:hover
{
    background-color: #629FCC; 
}

.ScreenName
{
      margin-bottom: 55px !important;
}

Open in new window


And in the code in front:
<asp:Label ID="lblScreenName" runat="server"></asp:Label>

Open in new window


In the codebehind I set the text and if there is a hyperlink, add the HTML coding and class.

            lblScreenName.Text = "Register"
            lblScreenName.CssClass = "ScreenName"

Open in new window


Thanks!
0
Comment
Question by:Starr Duskk
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38822288
We need to see the context. Please post a link to the page.

Cd&
0
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 500 total points
ID: 38822298
Hi,

You can quickly debug the issue using IE Developer Tools - http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Internet_Explorer/A_10330-Developer-Tools-provided-by-Microsoft-IE-9-web-browser.html

OR

Fierbug Addon in Firefox browser also helps u to debug the issue!

Hope it helps u...
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 38823703
The page isn't published. I only have it locally.

Not sure how I would use those tools to debug the CSS. It's not "broken" per se, I just need to know what's wrong with the way I'm doing it. There are no errors, etc.

Thought someone might know CSS and look at the code I provided and see what's causing the problems.

I'll see if it's possible for me to publish it, but I don't know if I can.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38824620
If you look at my profile you will see I DO KNOW CSS; I looked at the code; it gives nothing but a desire to see context, so there is some hope of finding a solution.

As for no errors... just because there are no error messages does not mean there are no errors.  Validate the generated HTML and CSS before you make a claim like that.

Cd&
0
 
LVL 23

Expert Comment

by:Roopesh Reddy
ID: 38826997
Hi,

The blog post clearly explains how to you Developers Tools -  http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Internet_Explorer/A_10330-Developer-Tools-provided-by-Microsoft-IE-9-web-browser.html

Again, if you post some HTML code, then we can look at it. If it's just CSS, we can't help you much!

Hope it helps u...
0
 
LVL 30

Expert Comment

by:LZ1
ID: 38835888
Can you post the browser rendered HTML?
0
 
LVL 2

Author Comment

by:Starr Duskk
ID: 38903038
I'll have to get back to this when I'm not so swamped. Thanks.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

726 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