The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Can someone please check this part of my css code?

4 posters

Go down

Solved Can someone please check this part of my css code?

Post by OMMA January 26th 2016, 7:06 pm

Lines 1 - 118 of my css code has a lot of repeated text. I'm not sure if its needed or not or if its the cause of errors. I can post the whole css if you need me to but it all seems correct. Only lines 1-118 are in question. I just want to clean it up because it seems when I try to add any additional code it goes wonky. Please help. Thanks in advance.

Code:
#textarea_content iframe
#text_editor_iframe,
#text_editor_textarea,
*+ html
#textarea_content iframe
#text_editor_iframe,
*+ html
#text_editor_textarea,
* html
#textarea_content iframe
#text_editor_iframe,
*+ html
#text_editor_textarea,
* html
#textarea_content iframe
#text_editor_iframe,
* html
#text_editor_textarea,
*+ html
#text_editor_textarea
.quick_reply_textarea,
* html
#text_editor_textarea
 
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }
.wysiwyg {
  background-color: #000000;
  }
#text_editor_textarea {
  background-color: #000000;
  }
body {
  background-color: #000000;
  background-position: top center;
  background-repeat: no-repeat;
  }
.pun {
* html
#text_editor_textarea,
*+ html
#text_editor_textarea
.quick_reply_textarea,
* html
#text_editor_textarea
  }
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }
.wysiwyg {
  background-color: #000000;
  }
#text_editor_textarea {
  background-color: #000000;
  }
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }
.wysiwyg {
  background-color: #000000;
  }
#text_editor_textarea {
  background-color: #000000;
  }
body {
  background-color: #000000;
  background-position: top center;
  background-repeat: no-repeat;
  }
.pun {
 
* html
#text_editor_textarea,
*+ html
#text_editor_textarea
.quick_reply_textarea,
* html
#text_editor_textarea
  }
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }
.wysiwyg {
  background-color: #000000;
  }
#text_editor_textarea {
  background-color: #000000;
  }
body {
  background-color: #000000;
  background-position: top center;
  background-repeat: no-repeat;
  }
.pun {
  min-width: 1053px;
  width: 1053px;
  }
#pun-intro {
  background-color: #;
  }
body {
  background-color: #;
  opacity: 1;
  filter: alpha(opacity=1);
  background-image: url("http://i68.servimg.com/u/f68/13/76/91/31/forumb11.jpg");
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  }
.pun {
  min-width: 1054px;
  width: 980px;
  }
OMMA
OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by SLGray January 27th 2016, 1:52 am

These (1-23) (42-48) (76-83) are not needed since there is no code between {}.


Can someone please check this part of my css code? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51194
Reputation : 3508
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by TheCrow January 27th 2016, 1:55 am

SLGray wrote:These (1-23) (42-48) (76-83) are not needed since there is no code between {}.
Probably you meant (40-48) and (74-83)! Very Happy
I think those extra lines are not needed also since no code are in them too! Embarassed
TheCrow
TheCrow
Manager
Manager

Male Posts : 6878
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by SLGray January 27th 2016, 1:56 am

Thanks @Luffy .


Can someone please check this part of my css code? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51194
Reputation : 3508
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by OMMA January 27th 2016, 3:20 am

Thank you for your time guys. Much appreciated. Two more questions.

1) What about things with code in them but are repeated?

.quick_reply_textarea - (25, 49, 59, 84) all same exact code
.wysiwyg - (29, 53, 63, 88) all same exact code
body - no period before it like the others and (35, 69, 94) all same exact code

2) Does it matter how the css code is ordered? What I mean is should say page-body be "after" pun-intro and "before" pun-foot?
OMMA
OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by SLGray January 27th 2016, 3:25 am

If you have the same CSS code more than once, you can delete all of them except for one.

Also if you have CSS codes that is for the same element, you can combine the two ore more codes.

It should not really matter the order, but sometimes to override some other codes you have to add it to the top of the stylesheet.


Can someone please check this part of my css code? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51194
Reputation : 3508
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by OMMA January 28th 2016, 12:46 am

OK thanks for your help. So I don't misunderstand what do you mean by combining the same element? Like this?

Code:
.quick_reply_textarea {
  background-color: #000000;
  }

and

.quick_reply_textarea {
  border: 1px #ffffff;
  }

can be?

Code:
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }

Also, I didnt really ask but need to know. As mentioned above ".quick_reply_textarea" and ".wysiwyg" have a period in front but "body" doesn't. Is this irrelevant or should it have a period in front of it too?
OMMA
OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by Ape January 28th 2016, 2:07 am

OMMA wrote:OK thanks for your help.  So I don't misunderstand what do you mean by combining the same element?  Like this?


Code:
.quick_reply_textarea {
  background-color: #000000;
  border: 1px #ffffff;
  }


Yes that is how it will work

OMMA wrote:Also, I didnt really ask but need to know. As mentioned above ".quick_reply_textarea" and ".wysiwyg" have a period in front but "body" doesn't. Is this irrelevant or should it have a period in front of it too?


It Don't need one as the font and Codes are All there when you type it will show a code for the fonts you use

like this
Code:
 [font=Comic Sans MS]Hello ME[/font]

The Wysiwyg has no real font as its just a tool so it shows the codes to your text when typing


Can someone please check this part of my css code? Left1212Can someone please check this part of my css code? Center11Can someone please check this part of my css code? Right112
Can someone please check this part of my css code? Ape_b110
Can someone please check this part of my css code? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 18723
Reputation : 1961
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by OMMA January 29th 2016, 6:07 am

OK thank you guys for your help. This can be marked as solved now
OMMA
OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

Solved Re: Can someone please check this part of my css code?

Post by SLGray January 29th 2016, 9:14 pm

Topic solved and archived


Can someone please check this part of my css code? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51194
Reputation : 3508
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum