2 of 2
2
I designed a site on a Mac and it looks crappy…
Posted: 15 October 2004 08:29 AM   [ Ignore ]   [ # 19 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

> I had to change your CSS imgs to relative, instead of absolute because very few browsers support it

Something to keep in mind here: often in EE, the same Template can look like it’s appearing at different “directory levels” as far as the browser is concerned.  In cases like that, relative paths are very dangerous and will almost always fail except in the one case they’re designed for.

Example:
Let’s say you design your CSS for the main “index” Template (in the “weblog” Template Group) on your site.  The same Template can be accessed from:

http://www.example.com/index.php
http://www.example.com/index.php/weblog/
http://www.example.com/index.phpweblog/index/
http://www.example.com/index.php/weblog/C23/
http://www.example.com/index.php/weblog/index/my_first_entry/

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 15 October 2004 10:13 AM   [ Ignore ]   [ # 20 ]  
Summer Student
Avatar
Total Posts:  24
Joined  10-13-2004

As far as I know CSS 1 does not have full browser support for absolute img paths. earbrain, you may have to put the images directly into the templates for absolute paths in this case. I will research and let you know.

Thank you Chris, that is very useful information. I am building my EE site right now, and you just helped me side step a huge headache.

 Signature 

There will be a lot of upset people when we find the center of the universe, and they find out its not them.

Profile
 
 
Posted: 15 October 2004 01:33 PM   [ Ignore ]   [ # 21 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

I’ve never run into a problem using absolute paths in CSS before.  But I’ve never used every browser out there.  AFAIK, all the major ones (IE/win, IE/mac, Mozilla, Opera, Safari) should support support something like this:

background-image: url(/images/watermark.gif);

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 15 October 2004 04:11 PM   [ Ignore ]   [ # 22 ]  
Summer Student
Avatar
Total Posts:  24
Joined  10-13-2004

All of those and Netscape (except Netscape 4) do support the reletive path like that your example. I haven’t found any info on absolute paths yet though. He has absolute paths in the CSS, but none of the images except the background show in IE6. I am almost thinking he should keep the background in the CSS, and then all the other images he should put in the HTML page.

 Signature 

There will be a lot of upset people when we find the center of the universe, and they find out its not them.

Profile
 
 
Posted: 16 October 2004 07:44 AM   [ Ignore ]   [ # 23 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

My example is an absolute path.  Note the forward slash (”/”) at the front of the path.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 19 October 2004 04:02 PM   [ Ignore ]   [ # 24 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  209
Joined  08-04-2003

Thanks everyone. I just monkeyed around with the code until it worked on all browsers—sort of like the example of monkeys eventually typing the correct Lord’s Prayer after 500 million years.

Profile
 
 
Posted: 19 October 2004 11:22 PM   [ Ignore ]   [ # 25 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  831
Joined  04-24-2002

An excellent CSS editor for the Mac is CSSEdit.  It allows you to quickly create complex CSS files.  Personally, I work faster with BBEdit, but CSSEdit has it definite strong points.

 Signature 

chrisruzin.net • TextMate EE Bundle • TextMate EE Developer Bundle • Solspace
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
Posted: 20 October 2004 06:29 AM   [ Ignore ]   [ # 26 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1338
Joined  02-12-2003

Yes CSSEdit is wonderful.  Also HyperEdit is incredibly useful to those who are coding the XHTML side by hand. 

I’m a former GoLive user too.  I still think it is the best WYSIWYG editor and I still do use it when a client isn’t interested about standards or when I have a very tight deadline for something (Nothing beats tables for sheer speed and compatibility).  However, when I can, I don’t even open GoLive anymore.  There are some great XHTML tutorials and those combined with the above two programs made learning CSS and XHTML not so bad.

When you code by hand it is much easier to find where you made a mistake if something is weird in IE. 

Oh, and VirtualPC works well for testing sites in IE for PC.  I have not had any success with BrowserCam and other sites like it.  You often can’t see the whole webpage.  And you can’t put the mouse over links and such to check mouse-over effects.

Jamie

Profile
 
 
Posted: 20 October 2004 08:03 AM   [ Ignore ]   [ # 27 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  831
Joined  04-24-2002

I also used to use GoLive.  In fact, I used it when it first came out and was called GoLive Cyberstudio.  At first I hated it because it created too much bloated code.  By the second version, they had cleaned up their code a bit, so I started using it all the time.  This was back in ‘97, ‘98.  After a while, feature creap began to happen and it became a swollen monstrosity of an app.  Dreamweaver is just as bad.  In 2001, I went back to using BBEdit for all my coding.

You’re right about it being easier to find errors in hand-coded pages.  The amount of code is a fraction of what you’d get with most WYSIWYG editors.

For those on a Mac, there is a little app called Paparazzi that takes screenshots of the _entire_ site, not just what’s showing in the browser window.  I had been looking for a Mac app that did this, and this fits the bill perfectly.

 Signature 

chrisruzin.net • TextMate EE Bundle • TextMate EE Developer Bundle • Solspace
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
Posted: 20 October 2004 08:39 AM   [ Ignore ]   [ # 28 ]  
Summer Student
Avatar
Total Posts:  24
Joined  10-13-2004

Paparazzi is one of the coolist programs around! I found out about it a month or so ago, and it is great! can’t say enough about it. I just wish you could select different file outputs but nothing Photoshop can’t fix.

 Signature 

There will be a lot of upset people when we find the center of the universe, and they find out its not them.

Profile
 
 
Posted: 20 October 2004 06:47 PM   [ Ignore ]   [ # 29 ]  
Lab Assistant
RankRank
Total Posts:  245
Joined  08-27-2004

On the issue on images and absolute paths…

When I was redesigning EE Design, I discovered that my header and background images were not loading in Mac IE 5.2.3.  I googled forever and finally found a site that had a list of a whole slew of bugs for that browser, including one that stated that for Mac IE 5.2.3 the quotes in absolute paths had to be double quotes (”) not single quotes (’)—can you believe that?  I made that simple change and the images loaded in that browser.

Granted, nobody uses Mac IE 5.2.3 anymore, but I wanted to make it work.  Funny what kind of browser bugs are out there.

Profile
 
 
   
2 of 2
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66391 Total Logged-in Users: 34
Total Topics: 84716 Total Anonymous Users: 19
Total Replies: 454702 Total Guests: 181
Total Posts: 539418    
Members ( View Memberlist )