navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

problem with my css

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> problem with my css
Page: [1]
 
indiewriter

 

Posts: 96
Joined: 7/21/2003
From: Chicago, IL
Status: offline

 
problem with my css - 2/16/2004 17:24:49   
Im not sure if this is a CSS issue or Javascript or both. I got some code that I found for a pretty neat little way to display driving directions. It looks fine in 800x640, but when I make a bigger window, the whole item shifts left. This is sort of a hard piece of code to describe, so i'll just add the site page here. If anyone knows how to make this stay in one place by attaching it to a stable image versus using x & y coordinates (or a combination of these two) please help! thanks

http://www.aqua-salon.com
ajdevies

 

Posts: 113
Joined: 6/19/2002
From: Holly Hill, FL
Status: offline

 
RE: problem with my css - 2/16/2004 17:49:18   
I tried your page Aqua Salon: Location using MSIE 5.5 SP2 and got a multitude of Javascript errors on page load. None of the hyperlinks using javascript:pulloutStart(n) work. I was able to get to the Printable page using IE.

Mozilla and Netscape do not display the CSS properly nor do any of the hyperlinks work correctly. Sorry to be the bearer of such bad news.

Can you check back with the site(s) where you got the scripts? The author(s) there may be able to assist better than someone in this forum.

Since your page seems to have both CSS and JS problems, I'd concentrate on one first before tackling the other.

_____________________________

AJ

(in reply to indiewriter)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: problem with my css - 2/16/2004 18:07:32   
Hi Indiewriter,
One thing that I noticed is this
body		{ margin: 0px; }
p, td  		{ font-family: Arial; font-size: 10pt; margin: 0 }


.cellpadding	{padding-left: 4px; padding-right: 4px} 
.leftborder     {border-left: solid 1px #808080; padding: 4px} 


Way too much spacing between your code here.

Should be something like this
body { margin: 0px; }
p, td { font-family: Arial; font-size: 10pt; margin: 0 }
.cellpadding {padding-left: 4px; padding-right: 4px} 
.leftborder {border-left: solid 1px #808080; padding: 4px} 


Read this thread HERE It looks like your css is out of order.

Try fixing these things first and see what happens. It doesnt take much in the css to be out of order to throw the whole thing off. Also there is a short hand order for all that you are using for fonts. I'm not sure without looking what it is, but I know that I posted it somewhere in the css threads not long ago. I'll look and post a link for you.

<edit> here is the shorthand for the font for you
font: font-style | font-variant | font-weight |
font-size | line-height | font-family

Example

p {
font: x-large/110% "new century schoolbook", serif;
}

This is where you can find information about the above font things. Also, just looked at your code again, you have the scroll bar done in css, which will only show up in IE, and I don't think it will validate when you go to validate it.
</edit>

< Message edited by c1sissy -- 2/16/2004 18:16:11 >


_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to indiewriter)
indiewriter

 

Posts: 96
Joined: 7/21/2003
From: Chicago, IL
Status: offline

 
RE: problem with my css - 2/16/2004 21:31:07   
oh well, it seemed really neat when i found it and i was able to make it work in IE. I hadn't gotten around to testing it in Opera or Mozilla..guess I won't have to worry about that after all. thanks all for your suggestions. guess i'll just do it a different way. Any suggestions sources on a creative idea for this?

(in reply to indiewriter)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: problem with my css - 2/16/2004 22:37:36   
quote:

ORIGINAL: indiewriter

oh well, it seemed really neat when i found it and i was able to make it work in IE. I hadn't gotten around to testing it in Opera or Mozilla..guess I won't have to worry about that after all. thanks all for your suggestions. guess i'll just do it a different way. Any suggestions sources on a creative idea for this?


I know what you mean about it being neat, I had to play with the code as well just to see how it turned out. As far as something else doing the same thing, I'm sorry that I can't help you on that part.

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to indiewriter)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: problem with my css - 2/16/2004 23:59:51   
Works fine in 1E6. IE 5.x has several notorious problems with css the main being (incredible though this may sound) that they got the box model very badly wrong. Microsoft themselves call using the IE5 rendering rules "bugwards compatible." There's a variety of ways atround chiefly the famous tantek hack. Just serve a style sheet up for ie5.5 using @import.

Works fine in Oprea 7.23 too. Mozilla (closely followed by opera) is the most compliant browser of all. If it shows in Mozilla then it'll work in everything. Have you validated your html and your css. Also check to see if the script is browser sniffiing. Personally I think it detracts from a very nice design. But then I concentrate my efforts on eliminating scripts not using them.

_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to c1sissy)
Giomanach

 

Posts: 6115
Joined: 11/19/2003
From: England
Status: offline

 
RE: problem with my css - 2/17/2004 3:31:06   
Just thorwing my nose in:

When positioning items like you have tried to there, I fin dit easier to create one div layer to surround the whole page, and then create several smaller div layers in the document to hold the individual parts of it.

To place these I use:

position: relative;
top: XXpx;
left: XXpx;

and if needed i use bottom: XXpx;

What I recommed you do is give the javascript box it's own div layer and position it within another to get the layout right, that way, it won't move on resize, unless you use absolute for the position.

As I said, just poking my nose in

Dan

_____________________________




(in reply to gorilla)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: problem with my css - 2/17/2004 8:23:31   
Dan's points are well made and good. (Don't you like that sort of "nose poking." :))

_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to Giomanach)
indiewriter

 

Posts: 96
Joined: 7/21/2003
From: Chicago, IL
Status: offline

 
RE: problem with my css - 2/18/2004 1:27:20   
glomanch and gorilla,
thanks for the div idea. i was totally overthinking things. i'm gonna play with it in the next couple days and see what I can do. I really like this code and think its very user friendly(when it works) and affords users a unique way of viewing info. I still gotta track down the programmer that created this info-hopefully s/he'll have some suggestions. If anymore ideas pop-up on any forum-poster's brain, I would love to hear them.

Lastly, how much does spacing in code really effect browser processing speed. I will be the first to admit that sometime I really don't pay attention to spaces in the code. Will it really slow things down that much? I know the extra <br>s or  s; are extraneous, but I thought that most browsers can blow through that without really slowing anything down.

0h, 1 more question, how much stock should I put into the blurb you see in the bottom right cornere of FP 200o when it shows you waht the time is over 28.8. I know with dial up that this is slow, but what about people that have a quicker connection. Does this number really mean anything, and if so what are the translation time? Once again..this forum rocks and everyone on it is so helpful. Peace.

(in reply to gorilla)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: problem with my css - 2/18/2004 1:51:41   
You're welcome. Run with Giomanach's suggestion its a good one.

Well to cover extraneous characters in the coding issue first. It does have some effect. But you really have to overdo it before you get massive bloat. Also if you stick everything into jsut afew lines. Get rid of of all indenting and so on. Well it can be a bit of a nightmare to debug/edit/work out what the hell you did and why when you want to facelift a bit. This is really a thing of personal prefs.

The speed gauge thingy in Frontpage is ludicroulsy inaccurate. Go here:

http://www.tafweb.com/webspeed.html and get webspeed.

The backup to his main page www.tafweb.com - download all of his freebys - they're all good. He's now retired and is travelling the world (lucky chap eh?) so he doesn't support his freeware anymore or accept any correspondence about it either.

I've used his stuff for years. Never any problems. Recommended it to goodness only knows how many people - certainly in the 100s never heard of any problems. Webspeed is astoundingly accurate and I love the ability to set a "congestion factor." This one I simply can't imagine how I ever lived without it. Ummmmm yes I remember I had to write a horrific set of nested ifs in Excel .... ooooh it was horrid ....

One thing about webspeed. If you're for example calling an external script. you have to point webspeed at that too and then do a tiny bit of arithmetic. :-)

Hope all this helps a bit.

Kind regards,

< Message edited by gorilla -- 2/18/2004 1:55:57 >


_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to indiewriter)
indiewriter

 

Posts: 96
Joined: 7/21/2003
From: Chicago, IL
Status: offline

 
RE: problem with my css - 2/18/2004 2:03:49   
Gorilla,
If I can make a suggestion. this is great information. Please pass it on in this forum or find a way to post it for all to see. simple yet functional (and sometimes you need to think outside the box (to borrow a boring cliche)). I will continue to post so everyone else can benift from this site and your wisdom. If this can help me, its gotta help someone else.

(in reply to indiewriter)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: problem with my css - 2/18/2004 7:36:08   
quote:

ORIGINAL: indiewriter

Gorilla,
If I can make a suggestion. this is great information. Please pass it on in this forum or find a way to post it for all to see. simple yet functional (and sometimes you need to think outside the box (to borrow a boring cliche)). I will continue to post so everyone else can benift from this site and your wisdom. If this can help me, its gotta help someone else.


Indiewriter,
Gorilla is a totally wise person when it comes to web design. I see you have noticed and will soon become a "gorilla follower" :)

Seriously though I totally value what he says and the information that he and his tribe post. They know their stuff, and they are great people. I adore the bunch of them (lol, no banana puns intended roflol):)

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to indiewriter)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> problem with my css
Page: [1]
Jump to: 1





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