|
| |
|
|
Nicole
Posts: 2848 Joined: 9/15/2004 From: Nambucca / Kempsey, Australia Status: offline
|
Layout Problems - 1/9/2005 19:28:32
I'm nearing the end (hopefully) of creating my first valid XHTML website using CSS. I've decided to validate it using "Transitional" rather than "Strict", as it was an old template that used tables for layout, many of them nested. It seems to me as if XHTML Transitional is more lenient on the width attribute, can anyone varify that at all? So the site is valid, but i still have 4 visual properties with the site that aren't quite right and having spent a long time trying to figure them out, i'm wondering if anyone here can help at all? This is the website and i'd like it to appear as close to the template as it existed on my portfolio page. - There is too little padding above the banner compared to the original.
- There is a small white space at the bottom of the table containing the banner which i can't seem to eliminate.
- The links in the navigation should be a lighter grey to begin with.
- The main body of the page (containing the 3 columns) should have widths of 25%, 55% and 20% respectively but i'm having a terrible time trying to get that to happen.
Can anyone perhaps compare the XHTML to my css code body {
background-color: #f4f0e6;
}
p {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #666666;
font-size: 0.9em;
}
#page table {
border: 1px solid #000000;
background-color: #ffffff;
padding: 10px;
margin-right: auto;
margin-left: auto;
}
#header table {
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
align: center;
margin-top: auto;
margin-bottom: auto;
}
#navigation table {
background-color: #b19547;
padding: 5px;
}
#navigation p {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #525252;
text-align: right;
}
#navigation a:link, a:visited, a:active {
color: #525252;
text-decoration: none;
}
#navigation a:hover {
color: #ffffff;
}
#content table {
border: 0px solid;
padding: 10px;
}
#content h4 {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #666666;
font-size: 1.0em;
font-weight: bold;
text-align: left;
}
#content img {
border: 1px solid #000000;
float: left;
margin: 5px;
}
#content ul {
list-style-type: square;
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #666666;
font-size: 1.0em;
text-align: left;
}
#content p {
text-align: left;
}
#lefttop table {
border: 1px solid #000000;
background-color: #f4f0e6;
}
#lefttop h1 {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #000000;
font-size: 1.4em;
font-weight: bold;
text-align: center;
margin-top: 0px;
margin-bottom: 0px;
}
#leftmiddle table {
border: 1px solid #000000;
background-color: #568406;
padding: 10px;
}
#leftmiddle h2 {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #ffffff;
font-size: 1.4em;
font-weight: bold;
text-align: center;
margin-top: 0px;
margin-bottom: 0px;
}
#right table {
border: 1px solid #000000;
padding: 10px;
background-color: #006897;
text-align: left;
}
#right p {
color: #ffffff;
}
#righttop table {
background-color: #003366;
border: 1px solid #000000;
padding: 10px;
}
#righttop h3 {
font-family: Arial, Verdana, Helvetica, sans-serif;
color: #ffffff;
font-size: 1.4em;
font-weight: bold;
text-align: center;
margin-top: 0px;
margin-bottom: 0px;
}
#footer table {
border: 0px solid;
}
#footer p {
font-size: 0.9em;
color: #666666;
text-align: right;
margin-top: 0px;
margin-bottom: 0px;
}
#footer a:link, a:visited, a:active {
color: #666666;
text-decoration: none;
text-align: right;
}
#footer a:hover {
color: #000000;
text-align: right;
} and possibly enlighten me a little (or a lot) about why these 4 things just aren' working for me? Thanks Nicole
_____________________________
|
|
|
|
BobbyDouglas
Posts: 5470 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: Layout Problems - 1/9/2005 19:39:28
Although using the em font size looks good, it really doesn't make too much of a difference. I noticed that on some computers, using em font size will alter the entire website. Just a suggestion, as I ran into a problem with it.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
BobbyDouglas
Posts: 5470 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: Layout Problems - 1/9/2005 20:34:06
Wow, I fixed a problem without trying! This has been an issue with one of my recent sites. I changed to a fixed width, and the issue went away. Everything else is a fixed width (but still a liquid design), so I used a fixed font size. I noticed this issue comes up a lot with people running IE 5.x-6.x on the lower screen resolutions. Glad to see you got it fixed though.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
Nicole
Posts: 2848 Joined: 9/15/2004 From: Nambucca / Kempsey, Australia Status: offline
|
RE: Layout Problems - 1/10/2005 2:06:22
Well it seems as if i've finally succeeded, yet i'm not so sure. I'm not sure if i was doing the right thing, but i was editing, uploading, editing, uploading...etc all day, and it seems my computer couldn't keep up as i was getting my changes right, but my computer had cached old versions and wasn't showing the updated page. Has anyone else had a similar problem to this? If so, how can it be fixed? I'm still having that problem with one aspect of that page. The links in the navigation are sometimes showing as light and others a dark grey. Can anyone please tell me what colour these links appear to them, and whether they change colour when you refresh the page? Thanks a million guys, i'd still like more padding at the very top of the page, but i'm afraid i'm exhausted, that'll have to wait until tomorrow. Nicole
< Message edited by Nicoleoz -- 1/10/2005 6:10:26 >
_____________________________
|
|
|
|
Charles W Davis
Posts: 1725 Joined: 3/7/2002 From: Henderson Nevada USA Status: offline
|
RE: Layout Problems - 1/10/2005 14:37:49
Nicoleoz, I suggest that you change cellpadding to some number other than 0 (zero). The text abuts the borders and makes reading difficult.
_____________________________
Enjoy! It' s your endeavor! http://www.anthemwebs.com
|
|
|
|
BobbyDouglas
Posts: 5470 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: Layout Problems - 1/10/2005 16:11:35
I thought the whole idea of validating code was so that it appeared the same in all browsers? - This was my assumption, but I was apparently very wrong. It helps, but WILL NOT make it appear the same in all browsers. Sometimes it makes me wonder why I should spend so much time validating code. The reason is, because most people cannot find out what works, and what doesn't work, so they validate their code in order to hopfully clear up the problems. It helps, but it takes a long time for some sites.... Someone ought to move this to the CSS forum. Since that is your issue, and maybe Deb will take a look if she has the chance. Jaybee, shift + F5 reloads the page without using the cache.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
BobbyDouglas
Posts: 5470 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: Layout Problems - 1/10/2005 22:10:35
CTRL F5 usually has the desired effect when I keep seeing the old page - What does control F5 do?
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
BobbyDouglas
Posts: 5470 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: Layout Problems - 1/11/2005 1:36:09
Control + Refresh does the same thing as Shift + refresh?
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
Kitka
Posts: 2520 Joined: 1/31/2002 From: Australia Status: offline
|
RE: Layout Problems - 1/11/2005 3:18:59
quote:
Were they the server by any chance? No, it was shoalhaven.net.au The person concerned has since moved to the same ISP we use, and that problem and other minor but niggling issues, were resolved. I have heard similar reports about ihug and TPG though.
_____________________________
Kitka **It is impossible to make anything foolproof because fools are so ingenious.**
|
|
|
|
Kitka
Posts: 2520 Joined: 1/31/2002 From: Australia Status: offline
|
RE: Layout Problems - 1/11/2005 3:23:53
quote:
Control + Refresh does the same thing as Shift + refresh? Seems like it!
_____________________________
Kitka **It is impossible to make anything foolproof because fools are so ingenious.**
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|