472,784 Members | 996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,784 software developers and data experts.

CSS Background Firefox?

Please bear with me as I am new to both Firefox and CSS. I have browsed
through a number of groups looking for similar problems to my own but
can't find a definitive answer. If anyone here can help me out I would
appreciate your shared expertise so much.

My background image is displaying fine in IE, and, sometimes in Firefox
until I hit the reload button. It seems as if the browser is unable to
locate the image and throws up a graphic from my webhost regarding
remote
image hosting. It is not a remotely hosted image, it's right there in
my images folder along with the CSS file.

If anyone can take a look and point out any glaring errors the CSS file
is below, and the url is http://www.arteccentrix.5u.com/index3.html

Thanks in advance
Maurice Snell

/* CSS Document */

*{
body:0;
padding:0;
margin:0;

}

body{
background:url(http://www.arteccentrix.5u.com/images/bgstripes.gif);
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:9px;
margin-top:75px;
text-align:center;
color: #777777;

}

#wrapper{
position:relative;
margin-left: auto;
margin-right: auto;
padding-top:100px;
width:800px;
height:600px;
background-color:#FFFFFF;
border: 2px solid #CE3095;

}

#rgheader{
text-align:right;
width:50%;
position:absolute;
right:15px;
top:-19pt;

}

#rgheader h1{
font-weight:lighter;
font-size:24px;

}

#rglinks{
position:absolute;
padding:10px;
top:0;
left:0;

}

#rglinks ul{
display:inline;
list-style:none;
margin:0px;

}

#rglinks li{
font-weight:bold;
display:inline;

}

#rglinks a{
color:#777777;
text-decoration:none;
margin-right:10px;
border-top:3px solid #CE3095;

}

#rglinks a:hover{
border-top:3px solid #F4C0DA;

}

#content{
width:auto;
height:500px;

}

#content h1{
text-align:right;
margin-right:20px;
margin-left:200px;
font-size:16pt;
border-bottom: 2px solid #F4C0DA;

}

#content p{
text-align:right;
margin:10px 20px 30px 200px;

}

#picturelist {
text-align:right;
list-style-type:none;
margin-right:15px;
margin-left:30px;

}

#picturelist li {
float:right;
margin-right:20px;
margin-bottom:10px;
font-weight:bold;
color:#777777;

}

#picturelist img{
display:block;
border:1px solid #CE3095;

}

#picturelist img:hover{
border:1px solid #F4C0DA;

}

#picturelist a{
color:#777777;
text-decoration:none;

}

#picturelist a:hover{
color:#999999;

Jul 5 '06 #1
14 7328
arteccentrix wrote:
Please bear with me as I am new to both Firefox and CSS. I have
browsed through a number of groups looking for similar problems to my
own but can't find a definitive answer. If anyone here can help me
out I would appreciate your shared expertise so much.

My background image is displaying fine in IE, and, sometimes in
Firefox until I hit the reload button. It seems as if the browser is
unable to locate the image and throws up a graphic from my webhost
regarding remote image hosting. It is not a remotely hosted image,
it's right there in my images folder along with the CSS file.
You mean your 5x5 pixel .gif, right? Loads for me, first time in
several browsers.
If anyone can take a look and point out any glaring errors the CSS
file is below, and the url is http://www.arteccentrix.5u.com/index3.html
body{
font-family:Verdana, ...
font-size:9px;
Virtually unreadable in my browsers. See this, and switch to 100%:
http://k75s.home.att.net/fontsize.html

#rgheader{
top:-19pt;
Points are for printing.
#rgheader h1{
font-size:24px;
Use something around 150% or so instead of px.
#content h1{
font-size:16pt;
Use something around 130% or so instead of pt.

And most of all ... you definitely *need* to resize your images to the
exact size in pixels you want to display. Example:

http://www.arteccentrix.5u.com/image...ites_006-2.jpg
is way too large for a thumbnail at 53.85 KB (55,139 bytes)
and you want to display 100px × 99px
of a physically sized 480px × 342px file.
Never resize an image via HTML attributes.
This thumbnail should be maybe 5 to 8 KB at most.

The really wide pictures suffer greatly.

Right-justified English text is very hard to read.
Low-contrast text is hard to read.

Didn't look at any other pages.

--
-bts
-Warning: I brake for lawn deer
Jul 5 '06 #2
On 2006-07-05, arteccentrix wrote:
Please bear with me as I am new to both Firefox and CSS. I have browsed
through a number of groups looking for similar problems to my own but
can't find a definitive answer. If anyone here can help me out I would
appreciate your shared expertise so much.

My background image is displaying fine in IE, and, sometimes in Firefox
until I hit the reload button. It seems as if the browser is unable to
locate the image and throws up a graphic from my webhost regarding
remote
image hosting. It is not a remotely hosted image, it's right there in
my images folder along with the CSS file.

If anyone can take a look and point out any glaring errors the CSS file
is below, and the url is http://www.arteccentrix.5u.com/index3.html
You have more problems than that; see how it appears in my system
in Firefox 1.5.0.4 (380K):
<http://cfaj.freeshell.org/www/www.arteccentrix.5u.jpg>.
/* CSS Document */

*{
body:0;
padding:0;
margin:0;

}

body{
background:url(http://www.arteccentrix.5u.com/images/bgstripes.gif);
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:9px;
That's far too small. It is legible in my browser only because I
have a minimum size set.

There is no need to set the font size for the main text at anything
other than 100% or 1em; user should have their default font sizes
set at an appropriate size.
margin-top:75px;
text-align:center;
color: #777777;

}

#wrapper{
position:relative;
margin-left: auto;
margin-right: auto;
padding-top:100px;
width:800px;
height:600px;
background-color:#FFFFFF;
border: 2px solid #CE3095;

}

#rgheader{
text-align:right;
width:50%;
position:absolute;
right:15px;
top:-19pt;

}

#rgheader h1{
font-weight:lighter;
font-size:24px;
As noted above, use relative sizes.
}

#rglinks{
position:absolute;
padding:10px;
top:0;
left:0;

}

#rglinks ul{
display:inline;
list-style:none;
margin:0px;

}

#rglinks li{
font-weight:bold;
display:inline;

}

#rglinks a{
color:#777777;
text-decoration:none;
margin-right:10px;
border-top:3px solid #CE3095;

}

#rglinks a:hover{
border-top:3px solid #F4C0DA;

}

#content{
width:auto;
height:500px;

}

#content h1{
text-align:right;
margin-right:20px;
margin-left:200px;
200px could be anything from half the window (or more) to one
tenth (or less) of the window.

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
Jul 5 '06 #3
arteccentrix <mo*****@btinternet.comwrote:
<snip>
My background image is displaying fine in IE, and, sometimes in Firefox
until I hit the reload button. It seems as if the browser is unable to
locate the image and throws up a graphic from my webhost regarding
remote
image hosting. It is not a remotely hosted image, it's right there in
my images folder along with the CSS file.
I suspect that something in the site's configuration is stopping the
server from treating the background image as a local file. Try:

background:url("/images/bgstripes.gif");

instead. BTW, I've always put quotes inside url(...) but they are not
required.

--
Ben.
Jul 6 '06 #4
To further the education of mankind, "arteccentrix"
<mo*****@btinternet.comvouchsafed:
Please bear with me as I am new to both Firefox and CSS. I have browsed
through a number of groups looking for similar problems to my own but
can't find a definitive answer. If anyone here can help me out I would
appreciate your shared expertise so much.

My background image is displaying fine in IE, and, sometimes in Firefox
until I hit the reload button. It seems as if the browser is unable to
locate the image and throws up a graphic from my webhost regarding
remote
image hosting. It is not a remotely hosted image, it's right there in
my images folder along with the CSS file.
...snip
body{
background:url(http://www.arteccentrix.5u.com/images/bgstripes.gif);
If in same folder, just:

background:black url(bgstripes.gif);

--
Neredbojias
Infinity has its limits.
Jul 6 '06 #5
Thanks for this Ben. I have tried what you suggest but still the
background is fine in IE and not showing in Firefox.

Maurice
Ben Bacarisse wrote:
I suspect that something in the site's configuration is stopping the
server from treating the background image as a local file. Try:

background:url("/images/bgstripes.gif");

instead. BTW, I've always put quotes inside url(...) but they are not
required.

--
Ben.
Jul 6 '06 #6
Thanks Neredbojias. Again, I have tried your suggestion with the same
net result - still no bg in Firefox although works fine in IE.

Thanks for the help though.

Maurice

Neredbojias wrote:
If in same folder, just:

background:black url(bgstripes.gif);

--
Neredbojias
Infinity has its limits.
Jul 6 '06 #7
>Beauregard T. Shagnasty wrote:
You mean your 5x5 pixel .gif, right? Loads for me, first time in
several browsers.
Thanks for confirmation but Firefox is the main culprit - not sure if
you tried FF.
body{
font-family:Verdana, ...
font-size:9px;

Virtually unreadable in my browsers. See this, and switch to 100%:
http://k75s.home.att.net/fontsize.html

This was a great help, thanks for teaching me. I have amended the CSS
as you suggest. It was a third party template I used as I thought it
would make things simpler Ha! Now I have a set of new problems to deal
with as larger text causes much of the content to spill over outside
the pink page margin/frame in Firefox (again)
And most of all ... you definitely *need* to resize your images to the
exact size in pixels you want to display. (snip)
Yes, I realize that I need to make proper thumbnails and am working on
them right now. Thanks for the advice, it's all been a big help.

Maurice

Jul 6 '06 #8

Chris F.A. Johnson wrote:
You have more problems than that; see how it appears in my system
in Firefox 1.5.0.4 (380K):
<http://cfaj.freeshell.org/www/www.arteccentrix.5u.jpg>.
Ouch, what an unholy mess! I see I have a long way to go before getting
this right don't I? Thanks for the heads up Chris, I'm glad I checked
things out before going any further.

All advice re text sizes has been incorporated now, although it throws
up new problems within FF.
#content{
width:auto;
height:500px;

}

#content h1{
text-align:right;
margin-right:20px;
margin-left:200px;

200px could be anything from half the window (or more) to one
tenth (or less) of the window.
Not wishing to sound too dumb (and failing) but what would you suggest
would be better on this point?

I thank you again Chris for your time and input, which has been
invaluable to me.

Maurice

Jul 6 '06 #9
arteccentrix wrote:
>>Beauregard T. Shagnasty wrote:
You mean your 5x5 pixel .gif, right? Loads for me, first time in
several browsers.

Thanks for confirmation but Firefox is the main culprit - not sure if
you tried FF.
Yes, Firefox, as that was your subject. The others were Opera,
SeaMonkey, IE, OffByOne as I recall. Still loads right away.
>>body{
font-family:Verdana, ...
font-size:9px;

Virtually unreadable in my browsers. See this, and switch to 100%:
http://k75s.home.att.net/fontsize.html

This was a great help, thanks for teaching me. I have amended the CSS
as you suggest. It was a third party template I used as I thought it
would make things simpler Ha! Now I have a set of new problems to
deal with as larger text causes much of the content to spill over
outside the pink page margin/frame in Firefox (again)
I removed this from the content style,
margin:10px 20px 30px 200px;
and the pink-bordered box expanded to fit the thumbnails.

I think the majority of the problems are due to all the margins set in
varying amounts of pixels. Why not remove all of them, and start over.
>And most of all ... you definitely *need* to resize your images to
the exact size in pixels you want to display. (snip)

Yes, I realize that I need to make proper thumbnails and am working
on them right now. Thanks for the advice, it's all been a big help.
You also have spaces in filenames. That is not always a good idea.
Recommend using all lower-case and either hyphens or underscores if you
think they are necessary (for all filenames, not just images).

Best of luck.

--
-bts
-Warning: I brake for lawn deer
Jul 6 '06 #10
On 2006-07-06, arteccentrix wrote:
>
Chris F.A. Johnson wrote:
> You have more problems than that; see how it appears in my system
in Firefox 1.5.0.4 (380K):
<http://cfaj.freeshell.org/www/www.arteccentrix.5u.jpg>.

Ouch, what an unholy mess! I see I have a long way to go before getting
this right don't I? Thanks for the heads up Chris, I'm glad I checked
things out before going any further.

All advice re text sizes has been incorporated now, although it throws
up new problems within FF.
#content{
width:auto;
height:500px;

}

#content h1{
text-align:right;
margin-right:20px;
margin-left:200px;

200px could be anything from half the window (or more) to one
tenth (or less) of the window.

Not wishing to sound too dumb (and failing) but what would you suggest
would be better on this point?
Don't specify any more than you need to, and avoid fixed px sizes.
How about:

#content{
margin-left: 38%;
margin-right: 3%;
padding-bottom: 55px;
}
I've done a bit of mucking around with your stylesheet, and put it
up here:
<http://cfaj.freeshell.org/www/www.arteccentrix.5u.com/index3.html>

I don't know whether it's what you are looking for, but perhaps it
will give you some ideas. There are still problems with scaling the
heading and the links at the top.
I thank you again Chris for your time and input, which has been
invaluable to me.
You're welcome.

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
Jul 7 '06 #11
To further the education of mankind, "arteccentrix"
<mo*****@btinternet.comvouchsafed:
Thanks Neredbojias. Again, I have tried your suggestion with the same
net result - still no bg in Firefox although works fine in IE.

Thanks for the help though.
Hmm, in that case it's probably being covered by something in FF.

--
Neredbojias
Infinity has its limits.
Jul 7 '06 #12
On 2006-07-07, Chris F.A. Johnson wrote:
>
I've done a bit of mucking around with your stylesheet, and put it
up here:
<http://cfaj.freeshell.org/www/www.arteccentrix.5u.com/index3.html>
Or are you looking for something like this:

<http://cfaj.freeshell.org/www/www.arteccentrix.5u.com/index4.html>
P.S. Centred text is even harder to read than flush right.

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
Jul 7 '06 #13
Hi Chris and thanks again

I like what you have done with
<http://cfaj.freeshell.org/www/www.arteccentrix.5u.com/index4.html>

More importantly, so does the artist!

I think I'm beginning to understand a little more about how it pulls
together but the last time I got involved with HTML of any kind was a
lot of years ago when it seemed simpler!
I would certainly appreciate the tweaked CSS. (All I need to work out
then is why FF keeps throwing my text out of the pink border instead of
resizing it to accommodate it).

Steep learning curve but you have been a wonderful help - I'd like to
credit you on the finished pages - perhaps with a link or something.
Let me know.

Maurice

On 2006-07-07, Chris F.A. Johnson wrote:

I've done a bit of mucking around with your stylesheet, and put it
up here:
<http://cfaj.freeshell.org/www/www.arteccentrix.5u.com/index3.html>

Or are you looking for something like this:

<http://cfaj.freeshell.org/www/www.arteccentrix.5u.com/index4.html>
P.S. Centred text is even harder to read than flush right.
Jul 7 '06 #14

Beauregard T. Shagnasty wrote:
Yes, Firefox, as that was your subject. The others were Opera,
SeaMonkey, IE, OffByOne as I recall. Still loads right away.
Thanks again, I'm relieved but still puzzled :-)
(snip)......larger text causes much of the content to spill over
outside the pink page margin/frame in Firefox (again)
I removed this from the content style,
margin:10px 20px 30px 200px;
and the pink-bordered box expanded to fit the thumbnails.

I think the majority of the problems are due to all the margins set in
varying amounts of pixels. Why not remove all of them, and start over.
More good advice for which I am indebted to you. Filenames comments
also noted - and I will rectify these along with all my other messy
HTML. Thanks for helping out someone who is very far from an expert.
Your good self, Chris, and all other respondents have been amazingly
generous. I will do my best to make the site worthy of all your efforts
:-)

Maurice

Jul 7 '06 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Gaz | last post by:
Hi, I have found an issue when comparing Firefox with IE6 (Windows) where a page links to a css file that is in it's own directory. IE6 URL property of the background css element uses the...
31
by: Arthur Shapiro | last post by:
I'm the webmaster for a recreational organization. As part of one page of the site, I have an HTML "Calendar at a Glance" of the organization's events for the month. It's a simple table of a...
6
by: Nancy Carter | last post by:
I'm trying to set the background color of a frameset to black. The following code doesn't work in either IE 6.0 or Firefox. Any ideas why? <frameset bgcolor="#000000" frameborder="0" border="0"...
5
by: proximus | last post by:
Hi, I am trying to change the background of table TD's. The problem is that I have no access to the HTML code. SO I am trying to alter this using Javascript/DOM in an external .js file. I...
2
by: Pugi! | last post by:
I would like to obtain the the position of backgroundimage of a div because I use it for animation. The following code works for Internet Explorer (takes the else if) and returns positionx '10px'...
3
by: lovely_angel_for_you | last post by:
Hi, I have following link. By visitng first in IE, and then in Firefox, you would get to know my issue. http://lovely.angel.for.you.googlepages.com/test.htm...
2
by: Mark | last post by:
IE creates an object of every ID'd HTML tag (so it appears), and each object sets a property for any parameter I set in the tag. For example, my HTML might be: <td id='cell1'...
11
by: Gérard Talbot | last post by:
Hello, <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <title></title> <style type="text/css"> body {background-color: white; color: black;}...
2
by: Roger | last post by:
Hi, Can anybody help to fix the vertical centering of an image in Firefox (2.0)? Apparently, Firefox puts the top half of the image in the background of the top of the screen instead of placing...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.