|
-
Feb 9th, 2012, 11:53 AM
#1
[RESOLVED] Width of the element to which jQuery Cycle is applied to
Hi guys 
In my site, there's a newsbox. It contains DIVs for each news. And I have specified the width of it to be 270px. But sometimes, the width is increased to 1024px, ie. the text inside it will be displayed as a single sentence.
When I checked in Google, it was displayed as a single line at first. When I checked in Firefox, it was normally displayed. But when I refreshed Chrome again, this was fixed. Yesterday also, it was like so.
Here's the link to the site: www.akhileshbc.com
Top-right side contains the newsbox.
Code:
html Code:
<!-- News box -->
<div id="top_newsbox">
<div id="news">
<div id="top_news">
<div class="msg">I have moved to a better server now :)</div>
<div class="msg">My site is up and running. Only 2 pages were included at the moment(ie. HOME & CONTACT page). I'll finish the rest of the pages soon. Don't forget to visit my site later :)</div>
</div>
</div>
</div>
Css:
css Code:
#top_newsbox
{
float:right;
width:392px;
height:108px;
margin-top: 13px;
margin-right:20px;
background-image: url(images/top_news_box.png);
background-repeat: no-repeat;
padding-top:15px;
}
#top_newsbox #news
{
margin-left: 105px;
width: 270px;
height: 75px;
font-size: 11px;
}
#top_newsbox #news #top_news
{
width: 270px;
height: 75px;
/*border: 1px solid #000000;*/
}
#top_newsbox #news #top_news .msg
{
width: 270px;
line-height: 16px;
}
I have tried debugging it myself. The css above is copied from the playground. So, it might look a bit messy.
Thanks in advance
Last edited by akhileshbc; Feb 9th, 2012 at 12:00 PM.
Reason: Grammar Mistakes :D
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|