[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Link overlaps the container?

Posted on 2011-05-12
2
Medium Priority
?
188 Views
Last Modified: 2012-05-11
The encircled element overlaps its container. It should be similar to the first view more link.

Any ideas and how to fix it?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
 
</title><link type="text/css" rel="Stylesheet" /> 
    <style type="text/css">
        .SmartItemContainer
        {
            width:400px;
            height:auto;
          
            border-bottom:solid 1px black;
            padding:10px;
            font-family:Arial;
            font-size:12px;
         }
         
         .SmartItemHeader, .SmartItemDescriptions
        {
            width:400px;
            display:block;
            font-weight:bold; 
                                 
        }
        .SmartItemHeader{
            color: #CC0000;
            height:20px;
            font-size:14px; 
        }
        
        .SmartItemDescriptions
        {
            width:auto;
            text-align:justify; 
        }
        
        .SmartItemLink
        {
            display:block;
            float:right;
            margin-bottom: 10px;
                       
        }
    </style>
    
</head>
<body>
    <form name="form1" method="post" action="Default.aspx" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTQxNDg3NDEwMmRkQuiCfoUQmA/fiWUUOP70wYHnFYY=" />
</div>
 
    
        <div>
 
</div><div class="SmartItemContainer">
	<a class="SmartItemHeader" href="http://www.google.com">This is a test header</a><span class="SmartItemDescription">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut 
        labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco 
        laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum 
        dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit 
        anim id est laborum.</span><a class="SmartItemLink" href="http://www.google.com">View More...</a>
</div>
        
        <div id="SmartItems1">
 
</div><div class="SmartItemContainer">
	<a class="SmartItemHeader" href="http://www.google.com">This is a test header</a><span class="SmartItemDescription">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut 
        labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco 
        laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum 
        dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit 
        </span><a class="SmartItemLink" href="http://www.google.com">View More...</a>
</div>
    
    </form>
</body>
</html

Open in new window

css-Problem.bmp
0
Comment
Question by:PagodNaUtak
2 Comments
 
LVL 16

Accepted Solution

by:
SSupreme earned 2000 total points
ID: 35745832
Add overflow: hidden; to .SmartItemContainer
0
 
LVL 8

Author Closing Comment

by:PagodNaUtak
ID: 35751537
Perfect!!!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Suggested Courses
Course of the Month19 days, 19 hours left to enroll

873 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