2 replies [Last post]
pea_noose
pea_noose's picture
User offline. Last seen 1 year 37 weeks ago. Offline
newbie
Timezone: GMT+1
Joined: 2010-09-03
Posts: 1
Points: 2

Hey,

Basically, whenever I try to insert and form of "no-reapeat" it makes the image disappear in the window in DreamWeaver.

I have no idea why it is doing this, and google or this site has nothing on what may be the problem

i have tried these in the css already;

background-repeat: no-repeat;

and also putting

no-repeat; after my url

here is my code for this part:

body {
	background-repeat: 
	width:100%;
	height:100%px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	position:absolute;
	height:100%;
	width:100%;
	line-height: 1.7em;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 12px;
	color: #666666;
    background: #ffffff url(images/border.jpg);
}

Thanks Smile

Stomme poes
Stomme poes's picture
User offline. Last seen 29 weeks 5 days ago. Offline
rank Elder
Elder
Timezone: GMT+2
Joined: 2008-02-04
Posts: 1854
Points: 378

yer code's weird

body {
	background-repeat: <-- why is this empty??
	width:100%;
	height:100%px; <-- double unit error, plus you're repeating yourself
	margin: 0;
	padding: 0;
	overflow: hidden;<--really bad idea on the body element
	position:absolute;<--bad idea on the body element
	height:100%;<--this really makes overflow: hidden a bad idea
	width:100%; 
	line-height: 1.7em;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 12px;
	color: #666666;
    background: #ffffff url(images/border.jpg);
}

Why not
remove background-repeat: sitting there alone.

in the condensed shorthand:
background: #fff url(theimage.jpg) no-repeat;
?

I'm no expert, but I fake one on teh Internets

Deuce
Deuce's picture
User offline. Last seen 4 weeks 5 days ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4421
Points: 1840

Also, dreamweaver is a not a

Also, dreamweaver is a not a browser. Don't view your site in it. it doesn't matter what it looks like, no one else will view your site in dreamweaver. use a browser.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph