iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-06-2008, 01:43 PM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Help!!!!

I am trying to get a hang of the CSS code. I am finally evolving from html.

The problems are the following:

all the changes that I do show on Mozilla, Opera and Safari, but not on IE. GRRRRRRRR

Also. I am trying to get two graphics to be at the very top of the page and next to each other. I got the next to each other, but I can't get them to play nice and both be at the top.

This is frustratiing.

If you need to see my site, it's in my sig.

~ Anissa
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #2 (permalink)  
Old 11-06-2008, 01:53 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,376
wige RepRank 5wige RepRank 5wige RepRank 5wige RepRank 5wige RepRank 5wige RepRank 5
Default Re: Help!!!!

As far as getting changes to show up in Explorer, try hitting the refresh button twice. I believe that in some versions the first time the document is refreshed, IE only reloads the page itself, and on the second refresh it grabs the external files (images, js files and css files).

I went to your site, but I get a Page Can Not be displayed message.
__________________
The best way to learn anything, is to question everything.
Interestingly Average Security Blog
Reply With Quote
  #3 (permalink)  
Old 11-06-2008, 01:58 PM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Re: Help!!!!

try it again, please, wige. I had to update my sig.

Sorry.

www.geocities.com/rayasroost/index.htm
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.

Last edited by Anissa; 11-06-2008 at 02:01 PM.
Reply With Quote
  #4 (permalink)  
Old 11-06-2008, 02:35 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,376
wige RepRank 5wige RepRank 5wige RepRank 5wige RepRank 5wige RepRank 5wige RepRank 5
Default Re: Help!!!!

Ah, ok. I can get to the page now, but I am not exactly sure why the elements are not lining up...
__________________
The best way to learn anything, is to question everything.
Interestingly Average Security Blog
Reply With Quote
  #5 (permalink)  
Old 11-06-2008, 03:02 PM
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Indiana
Posts: 589
google junky RepRank 1
Default Re: Help!!!!

1. There are 2 closing </head> tags to start off with
2. You have named some tags <p1><p2><div2><div3>. There are no such tags by this name(just name them <p> and <div>
3. Any code before <html> and after </html> needs to be removed

Start There and then I'll look again after that Is fixed.
Reply With Quote
  #6 (permalink)  
Old 11-06-2008, 03:21 PM
dharrison's Avatar
Moderator
WebProWorld Moderator
 
Join Date: May 2005
Location: Essex, UK
Posts: 2,005
dharrison RepRank 3dharrison RepRank 3
Default Re: Help!!!!

Looking at your stylesheet, you need to take the link out of:

Quote:
a:visited link:
Instead of p1, p2 (which don't exist). Instead I suggest using the following on the stylesheet:

Quote:
p.one { attributes; }
Quote:
<p class="one">Text</p>
and div1 and div2 stylesheet:

Quote:
#div1 { attributes; }
Quote:
<div id="div1">Content etc</div>
Hope this helps.
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #7 (permalink)  
Old 11-08-2008, 09:44 AM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Re: Help!!!!

I have tons of websites bookmarked to help me, but none of them told me that there was no p1 or higher. I am even more lost than I thought I was. :\

How are you supposed to tell the code that you have more than one place for things on a page if there is no p2 or place pictures on the page?

This dinosaur is confused. lol
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #8 (permalink)  
Old 11-08-2008, 12:34 PM
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Indiana
Posts: 589
google junky RepRank 1
Default Re: Help!!!!

Quote:
Originally Posted by Anissa View Post
How are you supposed to tell the code that you have more than one place for things on a page if there is no p2 or place pictures on the page?
Currently:
Code:
<p1><IMG src="http://www.geocities.com/rayasroost/pics/sitebanner.gif"></p1>
<p2><IMG src="http://www.geocities.com/rayasroost/pics/banner.gif"></p2>
Should be:
Code:
<p><IMG src="http://www.geocities.com/rayasroost/pics/sitebanner.gif"></p>
<p><IMG src="http://www.geocities.com/rayasroost/pics/banner.gif"></p>
The same for the <div> tags. Take the number out of them.

I looked at the source again since the last time and I haven’t seen anything changed at all. Do you have a test page you are working on and not making live in the web?
Reply With Quote
  #9 (permalink)  
Old 11-08-2008, 01:05 PM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Re: Help!!!!

between being sick and having to work, I haven't had time to make changes.

I have printed up the suggestions and I am going to implement them.

It's hard to concentrate when you're running a fever that brings a headache along for the ride.
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #10 (permalink)  
Old 11-08-2008, 01:15 PM
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Indiana
Posts: 589
google junky RepRank 1
Default Re: Help!!!!

I hope you get feeling better. I'll keep an eye out if you add anything else here.
Reply With Quote
  #11 (permalink)  
Old 11-08-2008, 01:17 PM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Re: Help!!!!

Quote:
Originally Posted by google junky View Post
1. There are 2 closing </head> tags to start off with
I had two opening ones two. I got rid of one set.

Quote:
Originally Posted by google junky View Post
2. You have named some tags <p1><p2><div2><div3>. There are no such tags by this name(just name them <p> and <div>
okay. Done.


Quote:
Originally Posted by google junky View Post
3. Any code before <html> and after </html> needs to be removed
I did it on the index page. I am not worrying about the other pages until I have this one right.


~Anissa
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #12 (permalink)  
Old 11-08-2008, 03:20 PM
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Indiana
Posts: 589
google junky RepRank 1
Default Re: Help!!!!

Take all the code out before <html> and all the code after </html>.

also remove the following:
Code:
<!-- following code added by server. PLEASE REMOVE -->
<link href="http://us.geocities.com/js_source/div.css" rel="stylesheet" type="text/css"><script language="JavaScript" src="http://us.geocities.com/js_source/div03.js"></script>
<!-- preceding code added by server. PLEASE REMOVE -->

In the meta tags it is:
currently "<meta name="rayasroost"
Should be <meta name="description"

Note: Remember to always keep a backup of your work.

Last edited by google junky; 11-08-2008 at 03:34 PM.
Reply With Quote
  #13 (permalink)  
Old 11-08-2008, 05:31 PM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Re: Help!!!!

Quote:
Originally Posted by google junky View Post
also remove the following:
Code:
<!-- following code added by server. PLEASE REMOVE -->
<link href="http://us.geocities.com/js_source/div.css" rel="stylesheet" type="text/css"><script language="JavaScript" src="http://us.geocities.com/js_source/div03.js"></script>
<!-- preceding code added by server. PLEASE REMOVE -->
This stuff doesn't show up in the code that I am typing. I think geocities is doing that when the page is live. I don't know how to get it off. I checked all my pages and there is nothing like that in the code that I typed.



Quote:
Originally Posted by google junky View Post
In the meta tags it is:
currently "<meta name="rayasroost"
Should be <meta name="description"
fixed

Quote:
Originally Posted by google junky View Post
Note: Remember to always keep a backup of your work.
yep.
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #14 (permalink)  
Old 11-10-2008, 10:49 AM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Really Hating IE at ths point... :(

Okay.

I got the graphic and the text at the top of the page where I want it.

Now I am repositioning the text boxes back to where I need them to be. I have to use absolute positioning. Every time I use relative positioning, everything goes wonky.

Here is the new problem:

I have to move the box with the main text up slightly in Mozilla, Opera, and Safari, but down in IE. WTF? How do I do that? I am really beginning to wonder why people use IE at all. sheesh. Before I even add any graphics on the main page, I have get this working.

(
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #15 (permalink)  
Old 11-10-2008, 11:01 AM
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Indiana
Posts: 589
google junky RepRank 1
Default Re: Help!!!!

Honestly I am not a pro at CSS.
I could do exactly the same layout you are trying to make with tables instead of divs in about 2 seconds(or about that )

IE is such a pain the butt to make work with CSS. I do applaud you for working so hard on it though.
I did see one person post that they use to different css files. one for IE only and one for all the other browsers.
An IF statement was used.

Here is a place where it is explained.
CSS - Conditional comments


like this:
Code:
<link href="all_browsers.css" rel="stylesheet" type="text/css">
<!--[if IE]> <link href="ie_only.css" rel="stylesheet" type="text/css"> <![endif]-->

Last edited by google junky; 11-10-2008 at 11:10 AM.
Reply With Quote
  #16 (permalink)  
Old 11-10-2008, 11:07 AM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Re: Help!!!!

Thanks for your help this far.

I appreciate it.
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #17 (permalink)  
Old 11-10-2008, 11:12 AM
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Indiana
Posts: 589
google junky RepRank 1
Default Re: Help!!!!

I added a snippet of the code you would use in my last post. we posted about the same time I think.

Good luck,
Google Junky
Reply With Quote
  #18 (permalink)  
Old 11-10-2008, 11:14 AM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Re: Help!!!!

I hope this does the trick. Thanks so much.
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #19 (permalink)  
Old 11-10-2008, 11:24 AM
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Indiana
Posts: 589
google junky RepRank 1
Default Re: Help!!!!

This was a good read as well.
CSS Hacks- The good, the bad, and the ugly- Conditional comments


Your welcome
Reply With Quote
  #20 (permalink)  
Old 11-10-2008, 11:41 AM
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Indiana
Posts: 589
google junky RepRank 1
Default Re: Help!!!!

two things I looked at that might be a problem.

Look for these in your stylesheet.css file


Curently:
Code:
a:visited link: {color: #400040;}
Change to:
Code:
a:visited {color: #400040;}




Currently: (i think you were just missing the semi-colon)
Code:
/* List bullet code */
ul
{list-style-image: url("http://www.geocities.com/rayasroost/pics/rbullet.gif")}
/* End of list code */
Change to this:
Code:
/* List bullet code */
ul {
list-style-image: url("http://www.geocities.com/rayasroost/pics/rbullet.gif");
}
/* End of list code */
Reply With Quote
  #21 (permalink)  
Old 11-10-2008, 11:58 AM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Hooray!!!

That condition thing really worked like a charm. ty everso much for your help, Junky!
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #22 (permalink)  
Old 11-10-2008, 12:59 PM
WebProWorld Member
 
Join Date: Dec 2003
Location: Newnan, GA
Posts: 88
Anissa RepRank 0
Default Re: Help!!!!

Do you think there is one for Safari as well?

It is only off slightly in Safari, but enough to notice that it is off.

I tried the same "if" thing for safari, but got nothing. I know this will probably mean a third code page, but if it gets rid of cross-browser glitches, I am willing to put up with editing three stylesheets.

ANYONE???
__________________
www.geocities.com/rayasroost/index.htm
No money for a hosting site with no ads.
Reply With Quote
  #23 (permalink)  
Old 11-10-2008, 06:55 PM
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Indiana
Posts: 589
google junky RepRank 1
Default Re: Help!!!!

Anissa,

I hope you didn't mind, but I rewrote your homepage and two CSS files. I sent them to the email address you had on your site in a zip file.

Edit: Actually I sent a second zip file. use that one instead and just delete the first one I sent.


You will have to format the text color, size, and maybe some alignment as to how you wanted it.
Otherwise it should be the way you wanted I think.

The page works on 800x600 and larger screen resolutions.
The HTML and CSS both validate 100% when checked at W3C

Google Junky
Reply With Quote
  #24 (permalink)  
Old 11-11-2008, 05:34 PM
WebProWorld New Member
 
Join Date: Nov 2008
Posts: 2
Dev4u RepRank 0
Default Re: Help!!!!

Hi Anissa, all ..

Thought this may help you or anyone trying to wade through CSS.

Normally when I develop, I put all hacks inline (page you are developing) and into a stylesheet between the HEAD tags. This validates, and hacks won't validate in an external stylesheet.

If using an external stylesheet, make a new class/div inline that is unique to any other style used so as not to have any duplicate internal/external styles. IE6 can be specifically targeted by using an underscore "_" before your style ie.. "_margin:10px 0 0 0;" .. for IE7, use "*" in same fashion .. and for Safari insert this style and edit:

@media screen and (-webkit-min-device-pixel-ratio:0) {
#someclass { margin:10px 0 0 0; }
}

In addition, any style rules that are going to be reused should be made into classes, as repeated div styles do not validate.

If you want your pages to be scalable and grow with any ammount of content, you should use relative positioning. This is a good practice to get into anyway. You can get away with using absolute positioning inside of a relative positioned element, but watch for page breaks cross browser just in case.

If you have any more queries re: CSS, please fire away and I hope that I've cleared some things up for you.

Last edited by Dev4u; 11-11-2008 at 06:23 PM. Reason: not wrapping properly
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:34 AM.



Search Engine Optimization by vBSEO 3.3.0