Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
A few minor issues with my HTML/CSS
Old 06-12-2009, 02:13 PM A few minor issues with my HTML/CSS
zomex's Avatar
Ultra Talker

Posts: 308
Name: Jack
Trades: 0
Hello everyone,

My new layout for Concept Skateboarding is coming together nicely. I have 3 minor issues with my code which I would love some help on.

http://www.conceptskateboarding.com/...rtal/index.php

Here is the template (in progress)



First of all in Internet Explorer there is twice as much margin underneath the left navigation than in Firefox, Opera, Safari and Chrome. I have checked my CSS and can't seem to find whats wrong with it.




My next issue is very minor, im trying to keep my layout warning/error free on HTML Validator (yes im fussy lol) the only warning I have got is

Quote:
<img href="http://www.conceptskateboarding.com/" src="http://www.webmaster-talk.com/images/logo.png" style="height: 100px width: 550px" alt="Concept Skateboarding logo" />
section

Quote:
Cause:

The tag contains an attribute that is proprietary to Netscape or Internet Explorer.
Example:

Sample: <table> proprietary attribute "height"
Wrong <table height="100%">
Good <table style="height: 100%">
Solution:

Most tags have a equivalents in standard HTML or CSS.
Error

Slightly od and i can't seem to find what is wrong with the code.



My next issue is also very minor and i have tried adding the correct margin to my CSS but it doesn't seem to have an effect. The problem is with my right navigation where it says "related pages" the margin above the text is much bigger than under the text and I cannot seem to fix this.

Quote:
body {
text-align: center;
margin-top:10px;
margin-bottom:10px;
color:#666666;
background-color: #E0E0E0;
}

A:link {
COLOR: #0000FF; text-decoration: none;
}
A:visited {
COLOR: #0000FF; text-decoration: none;
}
A:active {
COLOR: #0000FF; text-decoration: none;
}
A:hover {
COLOR: #FF0000; text-decoration: underline;
}

#page_wrapper {
margin-left: auto;
margin-right: auto;
width: 98%;
text-align: left;
background: #FFFFFF;
border: 8px solid #FFFFFF;
}

#header_wrapper {
background: #4E7DD1 url('../images/menu_bg.gif') bottom left repeat-x;
margin:0px; padding:0px;
}

#header {
height: 120px;
padding:15px;
background: url('../images/header_bg.gif') top right no-repeat;
margin:0px;
}

#header h1 {
margin:0px;
font-family: verdana, arial, sans-serif;
font-size: 28px;
color:#FFFFFF;
letter-spacing: -1px;
}

#header h2 {
margin:0px;
font-family: verdana, arial, sans-serif;
font-size: 14px;
color:#B1C6EB;
letter-spacing: 1px;
}

#left_navigation {
margin-top: 10px;
margin-bottom: 10px;
float: left;
width: 200px;
background: #4E7DD1;
}

#right_navigation {
margin-top: 10px;
margin-bottom: 10px;
float: right;
width: 160px;
}

.right_navigation_header {
background-color: #4E7DD1;
text-align: center;
font-weight: 900;
font-size: 15px;
font-family: tahoma;
color: #FFFFFF;
}

.right_navigation_content {
border-bottom: 2px solid #4E7DD1;
border-left: 2px solid #4E7DD1;
border-right: 2px solid #4E7DD1;
padding-left: 3px;
padding-right: 3px;
padding-top: 10px;
margin-bottom: 10px;
}

#content {
margin-top: 20px;
margin-bottom: 0px;
margin-left: 220px;
margin-right: 180px;
padding-left: 0px;
}

#footer {
height: 50px;
background-color: #4E7DD1;
clear: both;
text-align: center;
padding-top:12px;
color: #B6CEF9;
font-family: verdana, arial, sans-serif;
font-size: 11px;
line-height: 18px;
}

#footer A:link {
COLOR: #FFFFFF; text-decoration: none;
}
#footer A:visited {
COLOR: #FFFFFF; text-decoration: none;
}
#footer A:active {
COLOR: #FFFFFF; text-decoration: none;
}
#footer A:hover {
COLOR: #FFFFFF; text-decoration: underline;
}

#left_navigation p, #right_navigation p {
margin:10px;margin-top:15px;margin-bottom:15px;
font-family: verdana, arial, sans-serif;
font-size: 11px;
line-height: 16px;
color: #333333;
}

#left_navigation h3, #right_navigation h3 {
margin-top:5px; margin-bottom:10px; margin-left:5px; margin-right:5px;
padding:4px;
font-family: verdana, arial, sans-serif;
font-size: 14px;
font-weight: bold;
line-height: 14px;
color: #FFFFFF;
border:1px solid #0F3974;
background-color: #2153AA;
}

#left_navigation h4, #right_navigation h4 {
margin-top:0px;margin-bottom:0px;margin-left:10px;
font-family: verdana, arial, sans-serif;
font-size: 12px;
font-weight: bold;
line-height: 12px;
color: #2153AA;
}

#content p {
margin-top:15px; margin-bottom: 15px;
font-family: verdana, arial, sans-serif;
font-size: 12px;
line-height: 18px;
color: #333333;
}

#content h3 {
margin-top:5px; margin-bottom: 10px;
font-family: verdana, arial, sans-serif;
font-size: 18px;
font-weight: bold;
line-height: 18px;
color: #2153AA;
}

#content h4 {
margin-top:0px;margin-bottom:0px;
font-family: verdana, arial, sans-serif;
font-size: 14px;
font-weight: bold;
line-height: 12px;
color: #2153AA;
}

#navlist
{
margin-top:1px;
margin-bottom:0px;
text-align:center;
padding: 5px 0;
margin-left: 0;
border-bottom: 1px solid #0F3974;
font: bold 14px Verdana, sans-serif;
}

#navlist li
{
list-style: none;
margin: 0;
display: inline;
}

#navlist li a
{
color: #F1F6FE;
padding: 5px 15px;
margin-left: 3px;
border: 1px solid #0F3974;
border-bottom: none;
background: #2153AA url('../images/tab_bg.gif') bottom left repeat-x;
text-decoration: none;
}

#navlist li a:link { color: #F1F6FE; }
#navlist li a:visited { color: #F1F6FE; }

#navlist li a:hover
{
color: #FFFFFF;
background: #3364BB;
border-color: #0F3974;
}

#navlist li a#current
{
color: #000;
background: #FFFFFF;
border-bottom: 1px solid #FFFFFF;
}

.float_left {
float: left;
margin-right: 10px;
}

.float_right {
float: right;
margin-left: 10px;
}

.featurebox_center {
background-color: #fffff6;
margin:0px;
padding:10px;
border: 1px solid #DFE8F7;
font-family: verdana, arial, sans-serif;
font-size: 11px;
line-height: 18px;
color: #333333;
}

.featurebox_side {
background-color: #fffff6;
margin:0px;margin-left:10px;margin-right:10px;margin-bottom:15px;
padding:10px;
border: 1px solid #DFE8F7;
font-family: verdana, arial, sans-serif;
font-size: 11px;
line-height: 18px;
color: #333333;
}
There is my CSS

Thanks alot everyone

Jack

Last edited by zomex; 06-12-2009 at 02:27 PM..
zomex is offline
Reply With Quote
View Public Profile Visit zomex's homepage!
 
 
Register now for full access!
Old 06-12-2009, 02:32 PM Re: A few minor issues with my HTML/CSS
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
This is incorrect:

Quote:
style="height: 100px width: 550px"
Just put the height and width on the img tag as you normally would - and should:

Quote:
<img href="http://www.conceptskateboarding.com/" src="images/logo.png" height="100" width="550" alt="Concept Skateboarding logo" />
Image dimensions for the html tag are not 'presentational', they are legitimate attributes for the tag.

Do you have this on-line where we can see it ? Which version of IE is the problem ?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-12-2009, 02:56 PM Re: A few minor issues with my HTML/CSS
zomex's Avatar
Ultra Talker

Posts: 308
Name: Jack
Trades: 0
Quote:
Originally Posted by LadynRed View Post
This is incorrect:

Just put the height and width on the img tag as you normally would - and should:

Image dimensions for the html tag are not 'presentational', they are legitimate attributes for the tag.

Do you have this on-line where we can see it ? Which version of IE is the problem ?
Ohh i see ok I will change that now. I really appreciate all your help!


Here is the template page

http://www.conceptskateboarding.com/...rtal/index.php

Thanks once again!

Edit: I am viewing Internet Explorer 7

Last edited by zomex; 06-12-2009 at 02:59 PM..
zomex is offline
Reply With Quote
View Public Profile Visit zomex's homepage!
 
Old 06-13-2009, 01:26 PM Re: A few minor issues with my HTML/CSS
zomex's Avatar
Ultra Talker

Posts: 308
Name: Jack
Trades: 0
Thanks the image code you suggested works perfectly! Now I only have 2 issues left. One is the margin at the bottom of the left navigation in IE 7 and the other is the padding issues with the right navigation in all browsers.
zomex is offline
Reply With Quote
View Public Profile Visit zomex's homepage!
 
Reply     « Reply to A few minor issues with my HTML/CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15564 seconds with 12 queries