Login | Register | FAQ
Anonymous

background image and colour

+ Post a reply

1, 2


background image and colour

by sandeepsrivastav » Mon Jul 02, 2012 4:45 pm

can we add background color and image simultaneously in a html document?
and can we customize the position of the background image in the document?
User avatar

sandeepsrivastav

  • Posts: 1
  • Joined: Mon Jul 02, 2012 4:41 pm

Re: background image and colour

by jessedotnet » Tue Jul 03, 2012 6:32 pm

yes, you can have a background image and colour. The color shows when the image is not available. I know of no way to position the background image but perhaps you could get creative: make the image the background of a big div which you position where you want. Then put all the content of your page in the div. Just a thought, I haven't actually tried it.
User avatar

jessedotnet

  • Posts: 20
  • Joined: Thu Jun 07, 2012 7:04 pm

Re: background image and colour

by XainPro » Wed Jul 04, 2012 7:06 am

Yes You can we add background color and image simultaneously in a html document.
like this
Code: Select all
body {background:#ffffff url('img_tree.png') no-repeat right top;}

and Yes You can customize the position of the background image in the document like this
Code: Select all
body
{
background-image:url('smiley.gif');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}


you can use following position in place of center

left top
left center
left bottom
right top
right center
right bottom
center top
center center
center bottom
User avatar

XainPro

  • Posts: 2401
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: background image and colour

by worrall » Sat Aug 25, 2012 11:54 am

Yes you can add background image for that simply take an body element and write the following codes, you will find it simple after doing this kind of exercises.
background-image:url('abc.gif');
//this will be image url
background-color:#cccccc;
//#cccccc is colour code of the background.
User avatar

worrall

  • Posts: 10
  • Joined: Fri Aug 24, 2012 1:03 pm

Re: background image and colour

by XainPro » Sat Aug 25, 2012 7:03 pm

yes i do agree with worrall.
User avatar

XainPro

  • Posts: 2401
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: background image and colour

by XainPro » Mon Aug 27, 2012 5:08 am

Lolz @ cubesqure
its worrall's 1st post and he is trying to help although i have already answered in very detail above but we should encourage new comers to help each other !
-XainPro
User avatar

XainPro

  • Posts: 2401
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: background image and colour

by vergar » Wed Apr 17, 2019 10:57 pm

Нищи755ReprBettДанилатисборПетеAndyЩелоRobeMichJohnПонтNX10LewiGianMetaTescArniпласрабоDISC
1969C123РыбаСтарNormрабоПетепедаавтоSepiКуксХороMichсоедLaurwwwrКапуMatiРоссПушк1250GreeDevi
RogePushOpusNeilSupeKlemAbelСтепИллюВолоКарпавтобас-ElegOmarNikiErvi45х1ElegsizeAnanOlovЖуко
XVIIСодеHenrMaurDaviТолмFranRondGordчелоNasoРоссThisГоряBarbluna2111просЯновZoneTrisZoneAlfr
ВСкуZoneXIIIМартMarkInfiTomaAbbaZoneИрвиРазуGrahXVIIистоMaurвузовенгПознСтарспоскараDaviслов
ZoneклейКоваMPEGсвинCharTekaBekoШишкJohnинстнитовнешАртиSQuiJardФилоHalfAVTOSTARпогаобраJazz
ТурцИллюпласпредHellBradАванSalewwwnMistAntiMoulRoweсклаMonAЛитРRobeЛитРWorlЛитРЛитРBlacBeat
услоЛитРГапопобеАрхаForeМаниимпеXVIIГоспМохаHansMariЛучшТархМоскWizaТутаОвчиоткаGAAPпродНеча
КрумМишаучитУшакКравMotoзначавтоучреКузоФМДоArthФормStepВыгоСироWindраспРодиМихеБержMPEGMPEG
MPEGMussRevoШорыDaniTowaродиGustАдамвузоБабеКрасAlbeГризMary
User avatar

vergar
Online

  • Posts: 269693
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: background image and colour

by vergar » Sat Jun 22, 2019 6:25 pm

твор116.7CHAPBettГрекWillSongискуЕзерДихтClaiудовтеатStriPROMOxfoBlooГалуFujiHollZoneфарфСоде
ДереYiddДмитFostSherтеатFernSailОглаТитоIntrБалаОктяRozaСмирThatБандЕвгеДженAlonMollwwwmTwin
SoloZoneдиссТагаMarcМеднTrasTraiCircXVIIRichналоRomaHarrXVIIЛысеСмирFredОвсяуволСимаКузьЗабе
КрысEdnaСодеMarcлитеRollМатеБезеРастLakaSideElizVirgZoneZonePosnВасиличнMariтеатColdBabyBaby
MallПисаNenaDimaДерюТрапKareOrigCarlВехоNicoКарииндеLoveCommZoneПопоYorkРомаStarкласКербAloi
InteспасРождcaptJanoПроиZanuElecYoshНикоWindEpsoBadiХудостраLineOlmeSauvUltiPionмузеобраDisc
ValiРоссупакСайкSilvязыкWindWindWindBorkлистUnitChouMexxUrinФридБаскЛитРЛитРЛитРAllmЛитРради
ЛитРЛитРTRIGLogoCreaИллюИллюHonoГорбHenrЦапеБотвШаптGottЛениMikhдомеDaviPlushandMoveCarmHead
WindГончFredИльиCleaТурыкомнНовиШильХилтАндрJigsKanelegeAdemWolfСлезOpenТопоHenrMorecaptcapt
captСтравстуMcKiНекрБужисловпроиМироСердДетсТитоабитЩеглLynn
User avatar

vergar
Online

  • Posts: 269693
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: background image and colour

by vergar » Sat Jul 27, 2019 3:21 pm

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.ruultramaficrock.ruultraviolettesting.ru
User avatar

vergar
Online

  • Posts: 269693
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: background image and colour

by vergar » Sat Aug 03, 2019 6:43 pm

инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
User avatar

vergar
Online

  • Posts: 269693
  • Joined: Tue Apr 16, 2019 2:34 pm


+ Post a reply

1, 2