Atozed Forums
Question regarding general stylesheet - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Question regarding general stylesheet (/thread-1247.html)



Question regarding general stylesheet - SorenJensen - 09-17-2019

Hi All,

I'm trying to implement a general style sheet, so that all elements have the same font family and font size, and wonder if it is sufficient to define which style sheet to use, in ServerController. If style sheet is not defined for other forms, will they all  forms in the projct use the sheet defined for ServerController ?

OR.. is it necessary to specifically define a style sheet for each form ?

Regards
Soren


RE: Question regarding general stylesheet - joelcc - 09-18-2019

(09-17-2019, 11:01 AM)SorenJensen Wrote: Hi All,

I'm trying to implement a general style sheet, so that all elements have the same font family and font size, and wonder if it is sufficient to define which style sheet to use, in ServerController. If style sheet is not defined for other forms, will they all  forms in the projct use the sheet defined for ServerController ?

OR.. is it necessary to specifically define a style sheet for each form ?

Regards
Soren

It will, but most of the time I use the extraHeader on the pages to add the stylesheets that I want to use.


RE: Question regarding general stylesheet - SorenJensen - 09-20-2019

Hi Joelcc,

Thanks for your reply.

Would you post an example of the extraheader you create and the stylesheet it points to ? I do not seem to get it to work, and it's likely because I'm not doing it right.

Regards
Soren


RE: Question regarding general stylesheet - Jose Nilton Pace - 09-20-2019

Hi, I use this style to change a little the IWDBGrid:
Code:
<head>
  <style type="text/css">
    /*Ajustes na table do bootstrap*/
    .table>thead>tr>th, .table>tbody>tr>th {
      background-color: #e4e6e7;
    }
    .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {
      vertical-align: middle;
      font-size: 14px;
      padding: 8px;
      border-top: 1px solid #ddd;
    }
  </style>
</head>



RE: Question regarding general stylesheet - joelcc - 09-20-2019

(09-20-2019, 05:58 AM)SorenJensen Wrote: Hi Joelcc,

Thanks for your reply.

Would you post an example of the extraheader you create and the stylesheet it points to ? I do not seem to get it to work, and it's likely because I'm not doing it right.

Regards
Soren

You can do something like this.

ExtraHeader.Clear;

ExtraHeader.Add('<script type="text/javascript" src="/Files/includes/iwpdfobject.js"></script>');


RE: Question regarding general stylesheet - SorenJensen - 09-20-2019

Hi joelcc,

Thanks. Just what I needed.

Regards
Soren