Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Span contents overflowing even though specified overflow as hidden
Naveen Cn
Greenhorn
Posts: 1
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want the div with id as arit to cut off the extra contents...but it just overflows....how can i achieve this?? Given below is the code of html:
<div class="featuredItem"> <a href="images/content/demo-only/featured-1.jpg" class="featuredImg img zoom" rel="featured"><img src="images/content/demo-only/featured-1-thumb.jpg" alt="featured item" /></a> <div class="featuredText"> <h1 class="title"> <%art_id=rs.getString(1);String arti_name=rs.getString(2); out.println(arti_name); %> <span style="display:inline-block;"><div id="arit" style="height:5px;overflow:hidden;"><%String strXML=cl.write(rs);out.println(strXML); %></div></span> </h1> <a href="full_article.jsp?art_id="+art_id+">read more</a> </div> </div>
And here is the h1 css.
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span, .headline span, .title span { display: block; color: #8F8F8F; font-size: 0.6em; margin: -0.1em 0 0; }
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Fieldset is not working
a jquery plugin (not THE struts2-jquery plugin) not being loaded with struts2 mvc framework
scroll bar down
JSP <a href> tags breaks page functionality
Fieldset is not working
More...