Login | Register | FAQ
Anonymous

In HTML form apply CSS code

+ Post a reply

20 posts 1, 2


In HTML form apply CSS code

by gkonica » Fri Aug 12, 2011 8:42 am

My coding is in HTML form, then in which form should I apply the code of size, text etc.. which is in CSS.
User avatar

gkonica

  • Posts: 28
  • Joined: Tue Aug 09, 2011 5:41 am

Re: In HTML form apply CSS code

by HTML.net » Fri Aug 12, 2011 8:46 am

If you are ready for the next step (CSS), start reading the CSS tutorial: http://html.net/tutorials/css/

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: In HTML form apply CSS code

by gkonica » Fri Aug 12, 2011 8:50 am

I want this sentence to appear on the right <font face="Times New Roman"><center><font color="white"><h1>ZION POWER MINISTRIES </h1> which code is used?
User avatar

gkonica

  • Posts: 28
  • Joined: Tue Aug 09, 2011 5:41 am

Re: In HTML form apply CSS code

by HTML.net » Fri Aug 12, 2011 10:10 am

That is very old-school coding...

Using CSS, you would code it like this:

<h1 style="font-family: Times New Roman; color: white; text-align: center;">ZION POWER MINISTRIES</h1>

You will learn it all in the CSS tutorial.

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: In HTML form apply CSS code

by gkonica » Fri Aug 12, 2011 10:20 am

Ok!.. Now my Image is left side i.e. logo, now I want this text " ZION POWER MINISTRIES
HIS ENEMIES WILL I CLOTHE WITH SHAME:
BUT UPON HIMSELF SHALL HIS CROWN FLOURISH
PSALMS 132:18"

to be appear on the right side of the logo. I tried doing it many times, but I am not able to do it.
User avatar

gkonica

  • Posts: 28
  • Joined: Tue Aug 09, 2011 5:41 am

Re: In HTML form apply CSS code

by HTML.net » Fri Aug 12, 2011 10:24 am

Again, CSS will help you. Try this:

<img src="logo.jpg.jpg" style="float:left;" />

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: In HTML form apply CSS code

by gkonica » Fri Aug 12, 2011 10:28 am

My Image is correctly placed on the left side top, I want the text behind it.
i.e. my text to be on the right side top next to the logo....
User avatar

gkonica

  • Posts: 28
  • Joined: Tue Aug 09, 2011 5:41 am

Re: In HTML form apply CSS code

by HTML.net » Fri Aug 12, 2011 11:03 am

Try the code I posted - it should do the trick.

Read more about floating here: http://html.net/tutorials/css/lesson13.php

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1184
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: In HTML form apply CSS code

by gkonica » Fri Aug 12, 2011 11:45 am

ZION POWER MINISTRIES, I want power to be coloured in gold.. how should I do that.
User avatar

gkonica

  • Posts: 28
  • Joined: Tue Aug 09, 2011 5:41 am

Re: In HTML form apply CSS code

by gkonica » Fri Aug 12, 2011 11:56 am

Y the below code is not working:

<img src="word.jpeg.jpg" style="float:center;"/>
User avatar

gkonica

  • Posts: 28
  • Joined: Tue Aug 09, 2011 5:41 am


+ Post a reply

1, 2