Wordpress IE issue
Posted on
16th Feb 2014 07:03 pm by
admin
So I am trying to add the background shadow to my wordpress page. It works fine in Firefox but does not in IE.
So here is the original code:
<?php get_header(); ?>
<?php sy_pre_content(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<!--<h2><?php the_title(); ?></h2> -->
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<!-- Both comments and pings are currently closed. -->
<?php } edit_post_link('Edit this entry','','.'); ?>
<?php comments_template(); ?>
</div><!-- content -->
<?php sy_post_content(); ?>
<?php get_footer(); ?>
my new background is a <div id="shadow"> I put it on the very first and last line of the code.
Any idea why IE does not display the shadow? Actually this div is breaking the page in IE.
Thanks in advance
No comments posted yet
Your Answer:
Login to answer
278
8
Other forums
How to find OS bit version
How can I tell the person browsing my site is running 32, or 64 bit operating system?
Can't find the problem (no error message)!
OK, here's the deal. This code is really weirdly formatted (sorry!) and hard to understand, so I'm g
Remote Database Access
Hey guys!!
OK, i'm used to only working with databases from the CPANEL, accessing phpMyAdmin
Email Form Syntax Issue
I need the TO: in email to display To: CEO instead of To: abc@mail.com
How to alter the scri
need good snippet manager
Hi. as i am coding and learning more, it is becoming difficult to manage code snippets. how you mana
count only commas outside parenteses
I have a sql table containing
id - query - query name
the first page contains a drop down men
gmdate() - want 1 hr before time
Hi,
I am using php gmdate().
Now I am entering all dates in my dbase using gmdate("Y-m-d
Using CSS to format MySQL query
Hi,
If i want to have a news page on my site, which displays all records of a table in descen
Amend code to allow multiple attachments
Hi
I have a php page that allows the user to browse to a file (image) then sumbit, the confi
form problem
Hi all, I think this is going to be easy to resolve but for I have been looking at it to long and I