HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Help with HTML code....
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
Maverick27



Joined: 26 Jan 2010
Posts: 4

PostPosted: Fri Jan 29, 2010 5:26 am     Help with HTML code.... Reply with quote

Can somebody pls. help me HTML code below ?

Code:
<text><![CDATA[Lorem ipsum dolor sit amet, <b>consectetur adipisici elit</b>, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. <font color="#CCFF33">Ut enim ad minim veniam</font>, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <b>voluptate velit esse</b> cillum dolore eu fugiat nulla pariatur.  Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <b>voluptate velit esse</b> cillum dolore eu fugiat nulla pariatur.  Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.]]></text>


The piece of code is embedded in XML file but i suspect that HTML concept applies here...

I simply want to change Font Size ?
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4288
Location: MS

PostPosted: Fri Jan 29, 2010 8:16 am     Reply with quote

Use the span tags instead of the font tags which have been deprecated. Example:

Code:
<span style="font-size: 12pt; color:#cf3;">Ut enim ad minim eniam</span>
Maverick27



Joined: 26 Jan 2010
Posts: 4

PostPosted: Sat Jan 30, 2010 2:52 am     Reply with quote

PayneLess Designs wrote:
Use the span tags instead of the font tags which have been deprecated. Example:

Code:
<span style="font-size: 12pt; color:#cf3;">Ut enim ad minim eniam</span>


Thanks - i'll try this....
sticks464



Joined: 31 Dec 2006
Posts: 2625

PostPosted: Sat Jan 30, 2010 5:30 am     Reply with quote

Neither <text> or <![CDATA[ are elements of html. <![CDATA[ is a javascript element and is not used in html.
Try this with the span tag Ron mentioned.
Code:
<p>Lorem ipsum dolor sit amet, <span style="font-weight:bold;">consectetur adipisici elit</span>, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. <span style="color:#cf3;">Ut enim ad minim veniam</span>, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <span style="font-weight:bold;">voluptate velit esse</span> cillum dolore eu fugiat nulla pariatur.  Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <span style="font-weight:bold;">voluptate velit esse</span> cillum dolore eu fugiat nulla pariatur.  Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
Maverick27



Joined: 26 Jan 2010
Posts: 4

PostPosted: Mon Feb 01, 2010 12:58 am     Reply with quote

PayneLess Designs wrote:
Use the span tags instead of the font tags which have been deprecated. Example:

Code:
<span style="font-size: 12pt; color:#cf3;">Ut enim ad minim eniam</span>


It's not working....

My code:
<text><![CDATA[<span style="font-size: 14pt; color:#CCFF33;">TEST 123456789. fgjdflgjdlfkjgldfjgl</span>]]></text>

Result:
http://img12.imageshack.us/img12/3498/spanstyle.jpg

As you can see the size hasn't changed...

Mave
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4288
Location: MS

PostPosted: Mon Feb 01, 2010 2:28 am     Reply with quote

Images do not help solve coding problems. A link to the page online might help a bit more since posting the code you have posted is something I can not test in the way you are using it.

I think you might refer to Sticks post. Was the tags you are using declared for XML?
Maverick27



Joined: 26 Jan 2010
Posts: 4

PostPosted: Mon Feb 01, 2010 3:04 am     Reply with quote

Hi Folks - sorry but 'Span Tags' is not working maybe b'coz i have'nt declared Span Tags. Pls.tell me where to declare the SPAN Tags
Below is the original XML code.

<?xml version="1.0" encoding="utf-8"?>
<news>
<settings
linesColor = "0x424646"
backGroundAlpha = "50"
backGroundColor = "0x363B3D"

thumbsBackGroundColor = "0x404546"
thumbsPreloaderColor = "0xCCFF33"

listItemIconColor = "0xCCFF33"
listItemBackGroundColor = "0x444A4D"

buttonsNextPrevIconColor = "0xCCFF33"

buttonCloseColor = "0xCCFF33"
buttonCloseOutlineColor = "0x5C6567"
buttonCloseBackGroundColor = "0x444A4D"

scrollerColor = "0xCCFF33"
scrollerOutlineColor = "0x7D7979"
scrollerBackGroundColor = "0x2D3032"
scrollBarBackGroundColor = "0x3F4446"

xmlPreloaderColor = "0xCCFF33"
/>
<title><![CDATA[<font color="#CCFF33">Latest news</font>]]></title>
<items>
<item>
<unique_deep_link><![CDATA[Latest news 1]]></unique_deep_link>
<date><![CDATA[01/05/2009]]></date>
<detailDate><![CDATA[<font color="#CCFF33">01/05/2009</font>]]></detailDate>
<title><![CDATA[Lorem ipsum dolor sit amet]]></title>
<text><![CDATA[Lorem ipsum dolor sit amet, <b>consectetur adipisici elit</b>, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. <font color="#CCFF33">Ut enim ad minim veniam</font>, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <b>voluptate velit esse</b> cillum dolore eu fugiat nulla pariatur. Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <b>voluptate velit esse</b> cillum dolore eu fugiat nulla pariatur. Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.]]></text>


TEXT in Red is SIZE i want to increase...

Imageshack link shows the size of Font in my website.
As you can see it's quite small.

Mave
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4288
Location: MS

PostPosted: Sun Feb 07, 2010 5:08 pm     Reply with quote

Element Type Declaration
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial