locked
content Editor Font Size RRS feed

  • Question

  • Dear all

    I have a content editor web part that shows data from a list

    I want to change the items font that the content editor shows

    how can I change the font size only for this web part

    Is there any way i can do this ?

     


    Michel Yousry

    Thursday, April 26, 2012 10:14 AM

Answers

  • The best way is to use content query web part and a custom xslt web part

    if you cannot find the web part try

    Enable the Publishing infrastructure features on the site collection and

    after that follow this link to customize the font

    http://msdn.microsoft.com/en-us/library/bb447557.aspx


    If the reply was helpful or informative, please remember to mark it as answer or vote as helpful. MCITP SHAREPOINT

    • Proposed as answer by Ramez Al kara Saturday, April 28, 2012 10:06 AM
    • Marked as answer by Entan Ming Friday, May 4, 2012 3:50 AM
    Saturday, April 28, 2012 10:05 AM

All replies

  • Content editor web part can only show HTML Data

    Do u mean content query web part ?

    if this is the case you should create a custom sxlt template


    Ramez Al kara Software Consultant MCITP SHAREPOINT

    Friday, April 27, 2012 4:49 PM
  • Dear: Ramez Al Kara

    thanks for your reply

    I have no problem to use any web part to make me able to change the font size of a list

    I mean

    I have a list i want to change it's font size by any method

    thanks


    Michel Yousry

    Friday, April 27, 2012 8:08 PM
  • please elaborate what do u need exactly you want to use a webpart to retrieve items from list ?

    Can you give a screen shot cause I am confused now


    Ramez Al kara Software Consultant MCITP SHAREPOINT

    Friday, April 27, 2012 8:12 PM
  • If you're trying to only effect a specific web part on a specific page - I would open the page in sharepoint designer - locate the html tag that wraps the "web part zone" and add a class/id tag to the container so that you can write custom CSS code that specifically talks to the web part(s) in the zone.

    If you're using a "Page Layout" - the modification listed above would need to be made to the "Page Layout" the page is using. 


    Brian T. Shell

    Friday, April 27, 2012 9:01 PM
  • Follow below link to create your own custom xslt for the list and modify the font style

    http://msdn.microsoft.com/en-us/library/bb850574(v=office.12).aspx

    Or else edit the add the list view in the web part page and modify the xslt

    Saturday, April 28, 2012 6:55 AM
  • Dear: raghupavan

    Thanks for your Reply

    I'm so sorry but the link you put is for sharepoint 2007 and i'm using sharepoint 2010

    the Content Query Web Part is not listed in sharepoint 2010 web parts

    Thanks


    Michel Yousry

    Saturday, April 28, 2012 7:10 AM
  • Dear: Ramez Al Kara

    I'm so sorry i did not make it clear for you

    here is the case

    i have a list has two columns

    1-the quote

    2-Quote date

    I want to display a quote every day on the home page with a big font size

    what i have to do

    which web part should i use

    Thanks


    Michel Yousry

    Saturday, April 28, 2012 7:19 AM
  • The best way is to use content query web part and a custom xslt web part

    if you cannot find the web part try

    Enable the Publishing infrastructure features on the site collection and

    after that follow this link to customize the font

    http://msdn.microsoft.com/en-us/library/bb447557.aspx


    If the reply was helpful or informative, please remember to mark it as answer or vote as helpful. MCITP SHAREPOINT

    • Proposed as answer by Ramez Al kara Saturday, April 28, 2012 10:06 AM
    • Marked as answer by Entan Ming Friday, May 4, 2012 3:50 AM
    Saturday, April 28, 2012 10:05 AM
  • Dear: Aamez Al Kara

    I did Enabled the Publishing infrastructure features on the site collection and i can not find the query web part

    Thanks


    Michel Yousry

    Friday, May 4, 2012 5:14 PM
  • It Ramez :)

    you should enable publishing feature in site features too

    not only in site collection features


    If the reply was helpful or informative, please remember to mark it as answer or vote as helpful. MCITP SHAREPOINT

    Friday, May 4, 2012 5:16 PM