Jump to content


Photo
- - - - -

Styling Classes noob

font color and size

Best Answer Rob , 10 September 2013 - 08:52 PM

Well, if you use px, yes.  But if you use % and em, you'll retain the responsiveness.  I've made that mistake and learned my lesson.

Go to the full post


  • Please log in to reply
8 replies to this topic

#1 capgras

capgras

    Member

  • Members
  • PipPip
  • 27 posts
  • Country: Country Flag

Posted 09 September 2013 - 09:26 AM

Hallo, im really not into coding, I managed to customize some of the stuff using "Custom Code", mostly by pasting stuff i found online, however my next problem is very simple, but i cant find a solution, i want to change one word color and font size in a textbox, i guess the correct way is to use "Styling Classes" somehow, please help...



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 17618 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 09 September 2013 - 10:22 AM

Hi, If you you want to change the color and font size of a specific word in your text, then you will want to use HTML with inline styling. See here for examples. http://www.w3schools...ml/html_css.asp

#3 capgras

capgras

    Member

  • Members
  • PipPip
  • 27 posts
  • Country: Country Flag

Posted 09 September 2013 - 02:45 PM

Ok thank you, I will give it a go, I am trying to manipulate a DMS textbox, to have different font sizes and colors in the textbox.



#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 10 September 2013 - 03:47 PM

Let us know how you get along with that!



#5 capgras

capgras

    Member

  • Members
  • PipPip
  • 27 posts
  • Country: Country Flag

Posted 10 September 2013 - 03:55 PM

hi, its going well, naming different textboxes with styling classes and reducing their margins and padding to minimum in custom code, also line height needs to be modified, too bad i cant use it in a single text box, the html with inline styling works well, but it ignores the textbox completely, so i wind up having a textbox with it s default "type ur text here" sign, or i have a double text overlapping... i feel like im doing this backwards...



#6 capgras

capgras

    Member

  • Members
  • PipPip
  • 27 posts
  • Country: Country Flag

Posted 10 September 2013 - 03:56 PM

also, this is a fairly  easy way to completely jumble up the responsivenes



#7 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 10 September 2013 - 08:52 PM   Best Answer

Well, if you use px, yes.  But if you use % and em, you'll retain the responsiveness.  I've made that mistake and learned my lesson.



#8 capgras

capgras

    Member

  • Members
  • PipPip
  • 27 posts
  • Country: Country Flag

Posted 11 September 2013 - 07:47 AM

thanks egg, i switched all my values to em, it works, u helped a lot



#9 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 12 September 2013 - 08:04 AM

Glad to help, anytime!