html how to.
- Started
- Last post
- 17 Responses
- dconstrukt
hey guys....
i have a background on a webpage that I dont want to repeat height wise.....
- versa0
background-image: url(your_path/foo.gif);
background-repeat: repeat-x;
- ikbenvanrijn0
here you go.
- TResudek0
CSS my friend. Start off by taking it out of the body tag in the HTMl. Then use this code:
TR
- dconstrukt0
versa...
is this correct?
- TResudek0
hahaha... If you google
background-repeat:no-repeat-y
you'll see exactly what you need... Sorry my code didn't work.
- dconstrukt0
how about someone giving me the actual line of code.
i can't figure this shit out.....
a line here or there doesn't help
- heavyt0
dotn forget the style declaration!!!
/body style="background url(bg.gif) repeat-y;" /
TR1
- versa0
in an external css file:
body {
margin:0;
padding:0;
background-color: #fff;
background-image: url(../your_path/foo.gif);
background-repeat: repeat-x;
text-align: center;
font-family: trebuchet MS, arial, verdana, sans-serif;font-size: 12px;
font-weight: 100;
line-height: 100%;
color: #0a1505;
}*replace those font, mar, padd, etc declarations with whatever you want*
- dconstrukt0
how do i get that to show up on the webpage?
this stuff is totally new to me....sorry for the questions....
- dconstrukt0
TR what the fuck do you type in google to find this shit?
LOL
- versa0
put this in the head of your html doc
- versa0
[link rel="stylesheet" href="css/screen.css" media="screen" type="text/css" title="default" /]
replace brackets....
- dconstrukt0
dude....not sure what you're talking about put putting that whole code doesn't work.
you said make a new css file....now put the it in the html?
sorry to be a pain dude....how about we make this simple....
i'm a retard with this....
- heavyt0
forget everything.
do as i said.
/ = less then and greater then
/body style="background: url(bg.gif) repeat-y;" /
that is all.
dont freak out.
TR1
- Pixter0
put this code inside the HEAD tag, no need creating an external css file just to do this.
body
{
background-image:
url("yourimage.jpg");
background-repeat: repeat-x
}
- Pixter0
heavyt method should work
- dconstrukt0
THANK YOU GUYS.
versa....big thanks to you....
respect.