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 zachvaldez
at 2024-07-15 08:17:22
Point:385 Replies:10 POST_ID:828981USER_ID:11517
Topic:
Cascading Style Sheets (CSS);;
There is no align attribute in Html 5.
What is the css to attain this align,ent?
What is the css to attain this align,ent?
Author: zachvaldez replied at 2024-07-22 06:47:59
Using this way it would lined up. I took away the <h3> and <h4> 's tags and replaced with css. Thanks
Accepted Solution
Expert: Scott Fell (padas) replied at 2024-07-15 15:07:41
385 points EXCELLENT
CSS
HTML
Take a look at http://www.codecademy.com/tracks/web and go through the HTML and CSS courses. What you are asking should be very basic. I think a several hour time out for this will be very beneficial.
Author: zachvaldez replied at 2024-07-15 14:52:24
Can you give am example using div or span to change font size that
display like <h3>.<h4> and are lined up? Thnks
display like <h3>.<h4> and are lined up? Thnks
Expert: Scott Fell (padas) replied at 2024-07-15 09:35:58
You are using bootstrap so the alignment would be via your columns. Looking at your code (removing your asp tags) http://jsbin.com/girax/1/edit you can see it works as expected as is.
My guess is you have some other css that is in play. Can you please provide a link to your rest page to look at?
Also, your H tags should be used just as if you are writing a term paper. You have 1 topic sentence (<h1>) and some supporting sub topic sentences (<h2>). Inside of your h2 tags, you may have some other sub topic sentences that should be in order h3,h4,h5,h6.
There are some jquery plug ins that may rely on the use of H tags, but you want to keep the H tags for what they are and not a design element. If you are using them for labels, I would suggest to use a div or span with a class to change the font and avoid using H tags for that purpose.
My guess is you have some other css that is in play. Can you please provide a link to your rest page to look at?
Also, your H tags should be used just as if you are writing a term paper. You have 1 topic sentence (<h1>) and some supporting sub topic sentences (<h2>). Inside of your h2 tags, you may have some other sub topic sentences that should be in order h3,h4,h5,h6.
There are some jquery plug ins that may rely on the use of H tags, but you want to keep the H tags for what they are and not a design element. If you are using them for labels, I would suggest to use a div or span with a class to change the font and avoid using H tags for that purpose.
Expert: COBOLdinosaur replied at 2024-07-15 09:29:47
Oh bootstrap... like I said semantically invalid code. I'm out.
Cd&
Cd&
Expert: Scott Fell (padas) replied at 2024-07-15 09:27:01
Code snippet placed in a code box
padas
Topic advisor
padas
Topic advisor
Author: zachvaldez replied at 2024-07-15 09:23:51
Both <h3> and <h4> are in same div class="col-md-12"(bootstrap)
To elaborate further. If I don't make them all <h3> , it would not lined up. I'd like th ID to have smaller font size<h4>.
To elaborate further. If I don't make them all <h3> , it would not lined up. I'd like th ID to have smaller font size<h4>.
<div class="col-md-12"> label class="col-md-1 col-md-push-1 text center>ID#</label> <div class="col-md-1"> <h4> <strong><asp:Label ID="lblID" runat="server"></asp:Label></strong> </h4> </div> <label class="col-md-2 col-md-push-1">Last Name</label> <div class="col-md-2 col-md-pull-1"> <h3> <strong><asp:Label ID="lbllastname" runat="server"></asp:Label></strong> </h3> </div> <label class="col-md-2">First Name</label> <div class="col-md-2 col-md-pull-2"> <h3> <strong><asp:Label ID="lblfirstname" runat="server"></asp:Label></strong> </h3> </div> </div> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25:
Expert: COBOLdinosaur replied at 2024-07-15 09:07:06
vertical-align only works on table cells. for it to work on an h tag you would need to specify display:table-cell as well as the vertical-align.
However the question does not make a lot of sense because it is illogical to have h3 and h4 in proximity to each other in a semantically valid page.
Cd&
However the question does not make a lot of sense because it is illogical to have h3 and h4 in proximity to each other in a semantically valid page.
Cd&
Expert: duncanb7 replied at 2024-07-15 08:30:19
align attribute is depreciated on HTML5, using CSS to replace it , for example,
<style type="text/css">h3,h4 {text-align:center;vertical-align: top;}</style> 1:2:3:4:5:6:
Hope understand your question completely, If not, please point it out.
Duncan
Expert: Randy Poole replied at 2024-07-15 08:19:15
please elaborate