| View previous topic :: View next topic |
| Author |
Message |
Maverick27
Joined: 26 Jan 2010 Posts: 4
|
Posted: Fri Jan 29, 2010 5:26 am Help with HTML code.... |
|
|
|
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
|
Posted: Fri Jan 29, 2010 8:16 am |
|
|
|
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
|
Posted: Sat Jan 30, 2010 2:52 am |
|
|
|
| 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
|
Posted: Sat Jan 30, 2010 5:30 am |
|
|
|
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
|
Posted: Mon Feb 01, 2010 12:58 am |
|
|
|
| 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
|
Posted: Mon Feb 01, 2010 2:28 am |
|
|
|
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
|
Posted: Mon Feb 01, 2010 3:04 am |
|
|
|
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
|
|
|