6 Replies - 545 Views - Last Post: 24 August 2012 - 12:41 AM

#1 clarissa_milner  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 23-August 12

Can I create a list using CSS opposed to HTML?

Posted 23 August 2012 - 08:49 PM

I have a current list using HTML coding, but I want to update it to CSS, is there a code for this or do I need to add a table, and if so, how do I do this?
Is This A Good Question/Topic? 0
  • +

Replies To: Can I create a list using CSS opposed to HTML?

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4399
  • View blog
  • Posts: 12,253
  • Joined: 18-April 07

Re: Can I create a list using CSS opposed to HTML?

Posted 23 August 2012 - 09:28 PM

CSS is for styling, HTML is for marking up and structuring content. They work together. You create the list in HTML, like you did, then you style the way it looks using CSS. You don't "upgrade" HTML to CSS. They are two different things and work together.

This post has been edited by Martyr2: 23 August 2012 - 09:28 PM

Was This Post Helpful? 0
  • +
  • -

#3 clarissa_milner  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 23-August 12

Re: Can I create a list using CSS opposed to HTML?

Posted 23 August 2012 - 09:32 PM

I understand they work together, I am doing an assignment and we have to change HTML for CSS, so I was wondering if there is a way to create a list using CSS.
Was This Post Helpful? 0
  • +
  • -

#4 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 3569
  • View blog
  • Posts: 10,401
  • Joined: 08-June 10

Re: Can I create a list using CSS opposed to HTML?

Posted 23 August 2012 - 10:47 PM

to tell it plainly, without HTML no CSS will work.

what may be meant is that you replace HTML styling attributes through proper CSS, but that would require some shown code to verify.
Was This Post Helpful? 0
  • +
  • -

#5 miguel879  Icon User is offline

  • New D.I.C Head

Reputation: 10
  • View blog
  • Posts: 40
  • Joined: 20-July 12

Re: Can I create a list using CSS opposed to HTML?

Posted 23 August 2012 - 10:51 PM

try these.. it might help you and give you and idea.. ;)

Different list item markers
ul.a {list-style-type: circle;}
ul.b {list-style-type: square;}

ol.c {list-style-type: upper-roman;}
ol.d {list-style-type: lower-alpha;}




an image as the list item marker
 ul
{
list-style-image: url('sqpurple.gif');
}




Crossover Solution
ul
{
list-style-type: none;
padding: 0px;
margin: 0px;
}
ul li
{
background-image: url(sqpurple.gif);
background-repeat: no-repeat;
background-position: 0px 5px;
padding-left: 14px;
}



List Shorthand property
ul
{
list-style: square url("sqpurple.gif");
}


Was This Post Helpful? 1
  • +
  • -

#6 clarissa_milner  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 23-August 12

Re: Can I create a list using CSS opposed to HTML?

Posted 23 August 2012 - 11:51 PM

Thanks Miguel,
that was what I was looking for :)
Was This Post Helpful? 0
  • +
  • -

#7 miguel879  Icon User is offline

  • New D.I.C Head

Reputation: 10
  • View blog
  • Posts: 40
  • Joined: 20-July 12

Re: Can I create a list using CSS opposed to HTML?

Posted 24 August 2012 - 12:41 AM

my pleasure to help... :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1