?
Solved

HTML Formatting, Background color bleeds into main content.

Posted on 2008-11-13
5
Medium Priority
?
191 Views
Last Modified: 2012-05-05
I am trying to make a site for one of my classes using HTML and CSS. However, I have no experience with either one. Nevertheless, I am trying to design the GUI of the site. So, the log-in protocol does not need to work and my buttons do not necessarily need to function properly.
 
Please help me with these problems:

 - There is a gray bar that shows up below my navigation on some of the pages. (it is the same color as my background color)
- I can not change the color of my log-out button in the top right corner from blue to white.
- The table on the track inventory page is not centered.
0
Comment
Question by:MsSchlien
  • 3
  • 2
5 Comments
 

Author Comment

by:MsSchlien
ID: 22956834
the site address is: http://myweb.uiowa.edu/mhekker
0
 
LVL 15

Expert Comment

by:quincydude
ID: 22956990
1) there are more than one <body> element in your pages, each html page should only have one. Remove the redundant one (<body id="public"> ).

2)you commented out the style1 replace that by
<style type="text/css">
.style1 {color: #FFFFFF}
</style>

3) edit the div contentwrap

<div id="contentwrap" style="text-align:center;margin:auto;">

Hope this helps
0
 

Author Comment

by:MsSchlien
ID: 22957240
thanks, I removed the extra body tag. However, my track inventory and flood alert page still have that grey bar below the navigation.

Where should i add:
<style type="text/css">
.style1 {color: #FFFFFF}
</style>
??? does it go in the header of each page?

Lastly, i added the last line to the content wrap on the inventory page however, only the text became centered instead of the whole table
0
 
LVL 15

Accepted Solution

by:
quincydude earned 2000 total points
ID: 22957449
Since you have already a css, some style may be overwritten, I modified it a bit.

<style type="text/css">
a.style1:link { color: #FFFFFF; }
a.style1:visited { color: #FFFFFF; }
a.style1:hover { color: #000; background:#FFFF66; }
a.style1:active { color: #FFFFFF; }
</style>

You can put this code in every page or put

a.style1:link { color: #FFFFFF; }
a.style1:visited { color: #FFFFFF; }
a.style1:hover { color: #000; background:#FFFF66; }
a.style1:active { color: #FFFFFF; }

in the style.css included in your code.


In my web browsers (IE7 and chrome) I saw your table is centered with no problem. You can try to add this also to check if it help hiding the grey bar.
<div id="contentwrap" style="text-align:center;margin:auto;margin-top: 0px; padding-top: 0px;"> 

Open in new window

0
 

Author Closing Comment

by:MsSchlien
ID: 31516650
Thanks a bunch. I was able to get most of the problems fixed. : )
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

809 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