Iqbal Singh
Iqbal Singh

Reputation: 115

CSS conflicts with other CSS file in ck editor

Hiii, I am using CK editor in my website. But, when implement that on my webpage then CSS file of CK editor is working fine but the CSS file made for page is not working and page is style less.

Here is my code that I implemented:-

<?php 
include '../path1.php';
session_start();
if(!isset($_SESSION["username"]))
   header("location:$path/master/index.php");

$vendormaker=$_SESSION["username"];
include("connect.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Group Product</title>

<script src="ckeditor/ckeditor.js">
<link rel="stylesheet" href="css/abc.css">
</script>

</head>

<body>

<div class="add_info">
   <div class="list-heading">
   <b>Group Product Content</b>
   </div>

<form action="" method="post">

<?php
include 'connect.php';
?>

<form>
  <table  cellspacing="0" cellpadding="0" border="1" width="100%" >
  <tr style="color:White;background-color:#5D7B9D;font-weight:bold;">
    <th>Brand Name</th>
    <th>Category Name</th>
    <th>Sub Category Name</th>
    <th>Special Category Name</th>
  </tr>
  <tr>
    <td>
     <select name="brandname" id="brandname1">
     <option>Select The Brand</option>
     <?php
     $simage1="select * from brand";
     $a=mysql_query($simage1);
     while($row=mysql_fetch_array($a))
     {
     ?>
     <option value="<?php echo $row['id']; ?>" >
     <?php echo $row['name']; ?>
     </option>
     <?php }?>
     </select>
    </td>

    <td>
     <select name="categoryname" id="categoryname1">
     <option>Select The Category</option>
     <?php
     $simage1="select * from category";
     $a=mysql_query($simage1);
     while($row=mysql_fetch_array($a))
     {
     ?>
     <option value="<?php echo $row['category_id']; ?>" >
     <?php echo $row['category_name']; ?>
     </option>
     <?php }?>
     </select>
    </td>

    <td>
     <select name="subcategoryname" id="subcategoryname1">
     <option>Select The Subcategory</option>
     <?php
     $simage1="select * from subcategory";
     $a=mysql_query($simage1);
     while($row=mysql_fetch_array($a))
     {
     ?>
     <option value="<?php echo $row['subcategory_id']; ?>">
     <?php echo $row['subcategory_name']; ?>
     </option>
     <?php }?>
     </select>
    </td>

    <td>
     <select name="specialcategoryname" id="specialcategoryname1">
     <option>Select The Special Category</option>
     </select>
    </td>
  </tr>
  </table>

 <div style="margin-top:20px"></div>
 <table>
 <tr>
  <td><label>Full Description:</label></td>
 </tr>
 <tr>
  <td width="80%">
  <textarea class="ckeditor"  id="content" name="content" style="width:500px;    
  height:300px;"></textarea>
  </td>
</tr>
</table>
</form>

</div>
</body>
</html>

Any suggestions for this???

Upvotes: 0

Views: 579

Answers (1)

user3173360
user3173360

Reputation:

How could I not see that lmao. Your stylesheet is in the <script> tags. Place it in your head outside of the script tags.

Upvotes: 1

Related Questions