Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by burnedfaceless
at 2024-11-27 19:26:16
Point:500 Replies:5 POST_ID:828836USER_ID:11745
Topic:
Cascading Style Sheets (CSS);;
If I wanted the following to be canceled what would the syntax be?
border: 2px solid #000;
border: none;
border: 2px solid #000;
border: none;
Expert: duncanb7 replied at 2024-11-28 14:13:31
Thanks for your pt
Have a nice day
Duncan
Have a nice day
Duncan
Author: burnedfaceless replied at 2024-11-28 14:04:27
Thanks
Assisted Solution
Expert: nanharbison replied at 2024-11-28 07:41:33
250 points EXCELLENT
As DaveBaldwin says, f you replace the CSS for the border, it has to be the last CSS rule read by the page, so the style sheet that contains border:none has to come after the previous border rule.
But also, is your replacement rule in a separate style sheet, so you can look at the html on the page and make sure the replacement rule style sheet is last?
Or have you embedded this replacement rule in the html on one particular page, which comes after rules on a style sheet.? Or you can do it inline right in the div or whatever needs the replacement rule. That rule is the last one read.
But also, is your replacement rule in a separate style sheet, so you can look at the html on the page and make sure the replacement rule style sheet is last?
Or have you embedded this replacement rule in the html on one particular page, which comes after rules on a style sheet.? Or you can do it inline right in the div or whatever needs the replacement rule. That rule is the last one read.
Accepted Solution
Expert: duncanb7 replied at 2024-11-27 23:52:01
250 points EXCELLENT
I think you want to control CSS style in your page for some html tags or area individually
and effeciently. If so,
you might be interested in the following articles about CSS style precedence
http://www.vanseodesign.com/css/css-specificity-inheritance-cascaade/
http://css-tricks.com/specifics-on-css-specificity/
http://www.w3.org/TR/CSS2/cascade.html
Hope understand your question completely. If not please point it out
Duncan
and effeciently. If so,
you might be interested in the following articles about CSS style precedence
http://www.vanseodesign.com/css/css-specificity-inheritance-cascaade/
http://css-tricks.com/specifics-on-css-specificity/
http://www.w3.org/TR/CSS2/cascade.html
Hope understand your question completely. If not please point it out
Duncan
Expert: Dave Baldwin replied at 2024-11-27 20:40:22
You can't 'cancel' a CSS declaration but you can replace it. CSS definitions are applied in the order that they are found on a page. If you have a <style> section and a CSS file link in the <head>, the one that comes Last (for any particular element) is the one that is applied. After that, any 'inline' 'style' attributes are applied.
Note that if you change the color with 'border-color', that's all that it changes. The width and style remain the same until you change them.
Note that if you change the color with 'border-color', that's all that it changes. The width and style remain the same until you change them.