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
Old 02-16-2009, 04:35 AM CSS Positioning
Novice Talker

Posts: 6
Name: Mark Mawson
Location: hull
Trades: 0
Hi I am very new to this. I have been using a WYSISYG program, coffee cup.

I find it very easy and quick to use. I have been trying to do some SEO but thats seems to be sorted, with coffee cup the <p> seemed not to be "read" by google so I added html.
Our SEO went up huge amounts.
The probelm is now , I noticed this by chance, I got a new pc with a huge screen rosultion 1496 x 1024 I think, my web page http://www.amdivers.co.uk looks totally different to how it looks on the laptop which I produced it on screen resolution 1024x768.
I then heard of opera,safari and firefox.
The page dont look to bad, I am now in a revamp trying to use CSS and standard html.
I am working off line the css is :-
!-- Style sheet create by Mark Mawson MSDT 639071-->
<!-- http://www.amdivers.co.uk -->
<style type="text/css">
<!-- Set Link colours and underlining -->
a:link {text-decoration: none; color: rgb(0,0,255)};
a:visited {text-decoration: none; color: rgb(0,0,0)};
a:hover {text-decoration: none; color: rgb(0,0,255)};

<!-- body -->
body
text-align: left;
color: #000;
font-family: Verdana;
font-size: 13px;
white-space: wrap;
}
p
text-align: left;
color: #000;
font-family: Verdana;
font-size: 85%;
white-space: wrap;
}
h1
{
text-align: left;
color: #000;
font-family: Verdana;
font-style: bold;
font-size: 120%;
}
h3
{
text-align: left;
color: #00f;
font-family: Verdana;
font-style: bold;
font-size: 110%;
}

#col1
{
float: left;
width: 20%;
margin-left: 3%;
display: inline;
}
#Head1
{
float: left;
width: 48%;
margin-left: 3%;
position:absolute;
top:18%;
left:25%;
font-size: 100%;
display: inline;
}
#Head2
{
float: left;
width: 48%;
margin-left: 3%;
position:absolute;
top:30%;
left:25%;
display: inline;
}
#col2
{
float: left;
width: 40%;
margin-left: 3%;
position:absolute;
top:45%;
left:25%;
display: inline;z-index:5;
}
#col3
{
float: left;
width: 20%;
margin-left: 3%;
display: inline;
}
img.amlogo
{
position:absolute;
top:18%;
left:3%;
}
img.PADIlogo
{
position:absolute;
top:18%;
left:80%;
}
img.AMPic
{
position: absolute;
bottom:-35%;
left:50%;z-index:0;
}
img.Backround
{
position:absolute;
top:1%;
left:1%;z-index:0;
}
img.Footer
{
position:absolute;
bottom:-45%;
left:1%;
}
<!-- Menu buttons -->
<!-- Home -->
img.hb
{
position:absolute;
top:2.2%;
left:16.3%; z-index: 3;
}
<!-- Courses -->
img.cb
{
position:absolute;
top:2.2%;
left:27.4%; z-index: 3;
}
<!-- Staff -->
img.sb
{
position:absolute;
top:2.2%;
left:38.5%; z-index: 3;
}
<!-- Trips -->
img.tb
{
position:absolute;
top:2.2%;
left:49.6%; z-index: 3;
}
<!-- Contact Us -->
img.cub
{
position:absolute;
top:2.2%;
left:60.6%; z-index: 3;
}
<!-- Photo Gallery -->
img.pgb
{
position:absolute;
top:2.2%;
left:71.7%; z-index: 3;
}
<!-- News -->
img.nwb
{
position:absolute;
top:2.2%;
left:82.7%; z-index: 3;
}
<!-- AM Divers Contact details -->
#postal
{
position:absolute;
top:78%;
left:3%;
font-size: 85%;
}
<!-- AM Divers Rise and Dive -->
#RAD
{
position:absolute;
top:45%;
left:3%;
font-size: 85%;
}
#TRYD
{
width:15%;
position:absolute;
top:55%;
left:3%;
font-size: 85%;
}
#news1
{
width:15%;
position:absolute;
top:55%;
left:80%;
font-size: 85%;
}
#news2
{
width:15%;
position:absolute;
top:65%;
left:80%;
font-size: 85%;
}
#news3
{
width:15%;
position:absolute;
top:75%;
left:80;
font-size: 85%;
}
img.Uselink
{
position:absolute;
bottom:-10%;
left:3%;
font-size: 85%;
}



</style>
My web page is :-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- Created by Mark Mawson webmaster@amdivers.co.uk -->
<!-- http://www.amdivers.co.uk -->
<meta name="keywords" content="Scuba, Dive,learn, Diver, Diving, Hull, Try Dive, PADI, Padi, Open water, Advanced Open water, Rescue Diver, DiveMaster, Master Scuba Diver, Instructor, Instructors">
<meta name="description" content="Learn to Scuba Dive with Alison and Mark. New to Scuba diving, need more experience, join us in Hull. We can help further your eduction. We can take you through the experience of PADI Discover Scuba all the way to PADI Dive Master. ">
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="verify-v1" content="0vcRfHxNfwWBs+iGF+liLMhIxTwF8Ietps4tTKdmz rA=" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="author" content="AM Divers">
<meta name="Robots" content="INDEX,FOLLOW">
<meta name="Revisit-after" content="1 Day">
<title> AM Divers - Scuba Diving Hull </title>
<link rel="stylesheet" type="text/css" href="C:\Documents and Settings\User\My Documents\WEBPAGEHTML\amdivers_layout.css" head="">
<!-- Try Dives FLASH -->

</head>
<body>
<!-- Header and Footer creation -->
<img class="Backround" src="http://amdivers.co.uk/AM Divers images/Web Page Back.jpg" width=100%
height=15% border=0 alt="AM Divers Scuba Dive Hull"align=top border="0" ></div>

<img class="Footer" src="http://amdivers.co.uk/AM Divers images/Web Page Back.jpg" width=100%
height=5% border=0 alt="AM Divers Scuba Dive Hull" align=bottom border="0" ></div>

<!-- Main Menu web Buttons-->

<a href="
mrowsi is offline
Reply With Quote
View Public Profile Visit mrowsi's homepage!
 
 
Register now for full access!
Old 02-16-2009, 04:38 AM Re: CSS Positioning
Novice Talker

Posts: 6
Name: Mark Mawson
Location: hull
Trades: 0
The message has not completed, in IE I get a page similar to page published http://www.amdivers.co.uk in Opera,FF Chrome and Safari I dont get the correct positioning, the top menu buttons are not displayed at all. The reason I am tring this is becuse on my desktop of 1496x1024 resolution the web page is jumbled, I created it on 1024x768 laptop.
Also it looks different in chrome,ff opera etc. I would like to try and get a "universal" web page. Or am I just dreamin?
mrowsi is offline
Reply With Quote
View Public Profile Visit mrowsi's homepage!
 
Old 02-16-2009, 11:10 AM Re: CSS Positioning
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
with coffee cup the <p> seemed not to be "read" by google
<p> tags ARE HTML ! That's nonsense, google doesn't ignore paragraphs, but paragraphs to a search engine spider are not all that relevant anyway. Formatting your text in proper paragraphs are meant for HUMANS to read your content.

You need to lose all that absolute positioning, it causes a lot of problems and completely defeats the normal document flow. You cannot float an element and also give it position:absolute - it's contradictory and will NOT work.

You have a MAJOR case of div-itis, way too many divs, also not necessary.
You're never going to get a 100% 'universal' site, there are minor differences with the standards-compliant browsers and MAJOR differences with non-compliant (meaning IE6 and to some extent IE7). If you want any hope of consistency, you MUST use a PROPER DOCTYPE, and you really need to abandon all that positioning.

You might want to do some in-depth reading and NOT rely on CoffeeCups WYSIWYG mode.
http://css-discuss.incutio.com/?page=FloatLayouts
http://www.vision.to/the-difference-...ositioning.php
http://www.positioniseverything.net/index.php
__________________
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 02-24-2009, 04:16 PM Re: CSS Positioning
Novice Talker

Posts: 6
Name: Mark Mawson
Location: hull
Trades: 0
Thanks, there is a lot to read, I found my first problem was that I needed to change my reminder coments from <!-- cjjfsdf --> to /* sdfsdhfgsh */
My css started to work, not correctly, but I have now got some coloured text and a few positions, I will keep trying thank you.
mrowsi is offline
Reply With Quote
View Public Profile Visit mrowsi's homepage!
 
Reply     « Reply to CSS Positioning
 

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.15866 seconds with 12 queries