Solved

html,css and wordpress question

Posted on 2011-02-22
2
358 Views
Last Modified: 2012-06-27
http://tinyurl.com/4jlteol

I have this site, it is a mess.

Unfortunately, i cannot rewrite the code so i am stuck with the table structure that exists there. If you go to the URL, a lot of stuff is missing. The page is more or less supposed to look like this > http://tinyurl.com/4voktdb

ignore the middle content. As you will see, the site is not centered, the page bakround does not appear, nor does the background on the left side navigation items. When I copy and paste the source code into Dreamweaver, everything looks normal.

Any idea why it is rendering this way on the web?
0
Comment
Question by:lvollmer
2 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 34953535
>> As you will see, the site is not centered, the page bakround does not appear

Styles.css:

body {
    background: none repeat scroll 0 0 #F1F1F1;
}

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 {
    background: none repeat scroll 0 0 transparent;
    border: 0 none;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

Those two declarations affect the background and table.  So remove the HTML attributes from the table, assign it an ID and then create a matching CSS entry to center it.  For the background, add the appropriate CSS entry to the body declaration.

>> nor does the background on the left side navigation items

Same issue, mostly.   Use CSS to set background, as you will get more control over them and the CSS code won't supercede the HTML.
0
 

Author Closing Comment

by:lvollmer
ID: 34953637
thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Find out what you should include to make the best professional email signature for your organization.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now