ballouta Posted September 25, 2008 Share Posted September 25, 2008 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 More sharing options...
stublackett Posted September 25, 2008 Share Posted September 25, 2008 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> Link to comment https://forums.phpfreaks.com/topic/125780-solved-insert-style-to-head-tag/#findComment-650405 Share on other sites More sharing options...
haku Posted September 25, 2008 Share Posted September 25, 2008 If you are using XHTML and not HTML, you will have to change all those caps to small letters, or it will invalidate your code. Link to comment https://forums.phpfreaks.com/topic/125780-solved-insert-style-to-head-tag/#findComment-650422 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.