Jump to content

[SOLVED] Insert style to head tag


ballouta

Recommended Posts

Hello

 

I have this code in a CSS file:

.sResultsRow {
PADDING-BOTTOM: 8px; CURSOR: pointer; PADDING-TOP: 8px; BORDER-BOTTOM: #d9d9d9 1px solid
}

.sResultsImgPreview {
PADDING-RIGHT: 10px; PADDING-LEFT: 2px; WIDTH: 125px
}

 

is it possible to insert them into <head> of the sampe page instead of using a CSS file?

How

 

thank you

Link to comment
https://forums.phpfreaks.com/topic/125780-solved-insert-style-to-head-tag/
Share on other sites

Hi ballouta

 

Yes it is possible

 

In between the opening <head> and the closing </head>

 

Add the following

<style type="text/css">

.sResultsRow { padding-bottom : 8px; cursor : pointer; padding-top : 8px; border-bottom: #d9d9d9 1px solid }

.sResultsImgPreview { padding-right: 10px; padding-left: 2px; width: 125px; }

</style>

 

So it should look like this :

<head>
<style type="text/css">
.sResultsRow { padding-bottom : 8px; cursor : pointer; padding-top : 8px; border-bottom: #d9d9d9 1px solid }
.sResultsImgPreview { padding-right: 10px; padding-left: 2px; width: 125px; }
</style>
</head>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.