It is currently Thu Sep 09, 2010 3:03 am




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Fri Jul 23, 2010 9:19 pm 
Offline
User avatar

Joined: Wed Jul 07, 2010 6:09 am
Posts: 9
Location: the Netherlands
Thanks for your reply! Good to know you're working on it!
The 2010 theme just really looks good for my page, so I'd hate to abandon it just to get your calendar working properly.
Thanks :)


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Mon Jul 26, 2010 7:15 pm 
Offline

Joined: Thu Jul 22, 2010 2:54 am
Posts: 9
I've found some information about the TwentyTen theme in that, it has a few CSS resets that override a lot of custom CSS that you may be trying to implement. If you'll all allow me to dive a little deeper into this, I should have the problem solved by weeks end. I've already solved the issue of the calendar width not being what it should be.


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Mon Jul 26, 2010 7:35 pm 
Offline
User avatar

Joined: Wed Jul 07, 2010 6:09 am
Posts: 9
Location: the Netherlands
By all means, take your time ^^
I'm just happy you're taking the trouble to get it to work. ;)
Thanks a lot! :mrgreen:


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Mon Jul 26, 2010 8:09 pm 
Offline

Joined: Thu Jul 22, 2010 2:54 am
Posts: 9
mikemimik wrote:
I've found some information about the TwentyTen theme in that, it has a few CSS resets that override a lot of custom CSS that you may be trying to implement. If you'll all allow me to dive a little deeper into this, I should have the problem solved by weeks end. I've already solved the issue of the calendar width not being what it should be.


I figured out how to do it but now I'm late for work lol!

So I'll be posting a full tutorial tonight when I get home from work.

Talk to you all soon!


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Tue Jul 27, 2010 4:26 am 
Offline

Joined: Thu Jul 22, 2010 2:54 am
Posts: 9
Okay so I've had no time to extensively test this so you guys will have to help out with this but this is what I did to stop the TwentyTen theme from overriding my CSS or 'resetting' it.

In the style.css file you will find the following code segment:
Code:
/* Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
   margin: 0;
   padding: 0;
   border: 0;
   vertical-align: baseline;
   background: transparent;
}
body {
   line-height: 1;
}
h1, h2, h3, h4, h5, h6 {
   font-weight: normal;
   clear: both;
}
ol, ul {
   list-style: none;
}
blockquote {
   quotes: none;
}
blockquote:before, blockquote:after {
   content: '';
   content: none;
}
del {
   text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
   border-collapse: collapse;
   border-spacing: 0;
}
a img { border: none; }


This is part of the css code that is integrated with the TwentyTen theme to reset most of the html tags. If you notice it affects the <table>, <tr> and <td> tags.

So I looked at a page source from the php page that is generated by the TwentyTen when I have the calendar plugin running on it. The following code segment is what I found interesting:
Code:
   <div id="main">

      <div id="container">
         <div id="content" role="main">


            <div id="post-56" class="post-56 page type-page hentry">

                  
                  <h1 class="entry-title">Calendar Of Events</h1>
                           

               <div class="entry-content">
                  <p>
<table cellspacing="1" cellpadding="0" class="calendar-table">

Which appears to show that the <table> tag and subsequent <tr> and <td> tags are subclassed in a hierarchy of <div> tags. So I was forced to hunt down each one of the id/class elements and find out if each of them affected the tags in question.

Viola! I found the 'container'/'content'/'entry-content' id's which played a hand in messing around with my custom css.
Code:
#content table {
   border: 0px solid #e7e7e7;
   text-align: left;
/*   margin: 0 -1px 24px 0;*/
/*   width: 100%;*/
}
#content tr th,
#content thead th {
   color: #888;
   font-size: 12px;
   font-weight: bold;
   line-height: 18px;
/*   padding: 9px 24px;*/
}
#content tr td {
/*   border-top: 0px solid #e7e7e7;*/
/*   padding: 6px 24px;*/
}
#content tr.odd td {
   background: #f2f7fc;
}

Above is the section of the style.css that needs to be edited. for simplicity sake I just commented out the portions of the css that were messing with the custom css I was trying to introduce. So you're notice that there is a section:
Code:
#content table {
   border: 0px solid #e7e7e7;
   text-align: left;
/*   margin: 0 -1px 24px 0;*/
/*   width: 100%;*/
}

Which sets the width to 100% of the viewing area. Once I commented this out it fixed most of my headaches. Also there was some padding that I got rid of:
Code:
#content tr th,
#content thead th {
   color: #888;
   font-size: 12px;
   font-weight: bold;
   line-height: 18px;
/*   padding: 9px 24px;*/
}
#content tr td {
/*   border-top: 0px solid #e7e7e7;*/
/*   padding: 6px 24px;*/
}

Once all of that was commented out, rendering it ineffective, the css for the calendar was able to take affect! Again I have not fully tested this to see if it affects any other aspects of the site I am currently building so please if you guys notice anything let me know. I'll dive in again and see if I can't straighten it out. I'm a relative newb at this stuff so I sort of research as I go, promise I'll get an answer just no timeline promises.

Hope this helps, drop me a line,

Cheers, Mike


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Thu Jul 29, 2010 3:18 am 
Offline

Joined: Thu Jul 22, 2010 2:54 am
Posts: 9
My fix helping anyone?!


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Thu Jul 29, 2010 6:36 am 
Offline
User avatar

Joined: Wed Jul 07, 2010 6:09 am
Posts: 9
Location: the Netherlands
I'm waiting for Keirans fix, cuz this looks like something I'd completely scr*w up :roll: :lol:


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Tue Aug 10, 2010 5:45 pm 
Offline

Joined: Thu Jul 22, 2010 2:54 am
Posts: 9
Nothing as of yet eh?


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Tue Aug 10, 2010 11:27 pm 
Offline

Joined: Tue Aug 10, 2010 11:16 pm
Posts: 8
Just made the above changes to a site I am developing and it took care of the problem. Thanks for posting this fix.

I guess the issue is the twentyten css code references the selector (table) within the content division and this is applied after the css for the calendar-table division is applied. Does that make sense?

There also appears to be a problem with the content div overlapping the widget div. But that is another issue....different day.

Note: I don't have any other tables in my site at this time, but this fix should allow me to set the style for any other tables.

thanks!


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
New postPosted: Wed Aug 11, 2010 1:55 am 
Offline

Joined: Thu Jul 22, 2010 2:54 am
Posts: 9
cswaim wrote:
Just made the above changes to a site I am developing and it took care of the problem. Thanks for posting this fix.

You're welcome!

cswaim wrote:
I guess the issue is the twentyten css code references the selector (table) within the content division and this is applied after the css for the calendar-table division is applied. Does that make sense?

Yes this does make sense and this is what I suspected as well. Which is why I had to comment it out. Though by doing so it broke the css for all <table>, <tr> and <td> tags everywhere on my site. So I had to custom css them all (which was a pain).

cswaim wrote:
There also appears to be a problem with the content div overlapping the widget div. But that is another issue....different day.

If you want I'll help you with this as most likely I'll be using the calendar in a widget as well (if that is what you're referring to).

cswaim wrote:
Note: I don't have any other tables in my site at this time, but this fix should allow me to set the style for any other tables.

It does.

cswaim wrote:
thanks!

You're welcome again! =)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3  Next


Who is online

Users browsing this forum: MSN [Bot], Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: