CSS Home page edit

gsharpe1964

Member
Hi Mark & Basti

I've made a css from a gradient generator, i want the background the same color as my forums
the code goes something like this

Code:
background: #1e5799; /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzFlNTc5OSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjY1JSIgc3RvcC1jb2xvcj0iIzIwN2NjYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjgxJSIgc3RvcC1jb2xvcj0iIzI5ODlkOCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM3ZGI5ZTgiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, #1e5799 0%, #207cca 65%, #2989d8 81%, #7db9e8 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1e5799), color-stop(65%,#207cca), color-stop(81%,#2989d8), color-stop(100%,#7db9e8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #1e5799 0%,#207cca 65%,#2989d8 81%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #1e5799 0%,#207cca 65%,#2989d8 81%,#7db9e8 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #1e5799 0%,#207cca 65%,#2989d8 81%,#7db9e8 100%); /* IE10+ */
background: linear-gradient(top, #1e5799 0%,#207cca 65%,#2989d8 81%,#7db9e8 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-8 */
is this the correct way or is there an easier way i can make out where to add this in the CSS file? Any ideas
 

Mark

Administrator
Staff member
if you want this on the "body" background, open user.css and paste this between the curly braces

Code:
body {
  goes right here
}
that should do it.
 

Mark

Administrator
Staff member
very nice :) Happy to help, especially with making sure changes are done correctly so future upgrades are a little easier on you.
 

Anna

Member
A total noob when it comes to html and coding so working very much by trial, error and hands on instructions ^^ Managed to paste gsharpe's excellent code in to the css user. But I would be nice to be able to actually use my own background. So my question is: If I had a phote/picture I wanted to use as a background - how would I write then? Thanks a bunch in advance!
 

Basti

Administrator
Staff member
body {

}
there would go your custom stuff

Code:
  background: #ffffff url('img/yourphoto.jpg') repeat-x;
repeat-x = horizontal
repeat-y = vertical
repeat = both
no-repeat = stands for itself :)

The color code at the beginning is the color for the rest of the background which isnt covered by the photo, for example when using repeat-x that color will appear one the photos height is reached

Then upload your background to parabola/img
 

gsharpe1964

Member
A total noob when it comes to html and coding so working very much by trial, error and hands on instructions ^^ Managed to paste gsharpe's excellent code in to the css user. But I would be nice to be able to actually use my own background. So my question is: If I had a phote/picture I wanted to use as a background - how would I write then? Thanks a bunch in advance!
Anna, if you get time take a peek here http://www.html.net/tutorials/css/ Its so easy and not as hard as it looks, Enjoy

Gerry
 
Top